Skip to content

Commit b46e9ec

Browse files
Remove expectation on status version bump (#1483)
* Drop duplicate "Should sync spec down and set version to latest" test Signed-off-by: Furkat Gofurov <[email protected]> * Remove expectation on status version bump Signed-off-by: Furkat Gofurov <[email protected]> --------- Signed-off-by: Furkat Gofurov <[email protected]>
1 parent db181c6 commit b46e9ec

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

internal/sync/provider_sync_test.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package sync_test
1818

1919
import (
20-
"fmt"
2120
"os"
2221
"time"
2322

@@ -255,24 +254,6 @@ var _ = Describe("Provider sync", func() {
255254
HaveField("Spec.ProviderSpec", Equal(expected.Spec.ProviderSpec)))
256255
})
257256

258-
It("Should sync spec down and set version to latest", func() {
259-
s := sync.NewProviderSync(testEnv, capiProvider.DeepCopy())
260-
261-
expected := capiProvider.DeepCopy()
262-
expected.Spec.Version = CAPIVersion
263-
264-
Eventually(func(g Gomega) {
265-
g.Expect(s.Get(ctx)).To(Succeed())
266-
g.Expect(s.Sync(ctx)).To(Succeed())
267-
var err error = nil
268-
s.Apply(ctx, &err)
269-
g.Expect(err).To(Succeed())
270-
}).Should(Succeed())
271-
272-
Eventually(Object(infrastructure)).Should(
273-
HaveField("Spec.ProviderSpec", Equal(expected.Spec.ProviderSpec)))
274-
})
275-
276257
It("Should sync azure spec", func() {
277258
s := sync.NewAzureProviderSync(testEnv, capiProviderAzure)
278259

@@ -347,7 +328,6 @@ var _ = Describe("Provider sync", func() {
347328
g.Expect(capiProvider.Status.Conditions).To(HaveLen(2))
348329
g.Expect(conditions.IsTrue(capiProvider, turtlesv1.LastAppliedConfigurationTime)).To(BeTrue())
349330
g.Expect(conditions.IsTrue(capiProvider, turtlesv1.CheckLatestVersionTime)).To(BeTrue())
350-
g.Expect(conditions.Get(capiProvider, turtlesv1.CheckLatestVersionTime).Message).To(Equal(fmt.Sprintf("Updated to latest %s version", CAPIVersion)))
351331
g.Expect(conditions.Get(capiProvider, turtlesv1.LastAppliedConfigurationTime).LastTransitionTime.After(
352332
appliedCondition.LastTransitionTime.Time)).To(BeTrue())
353333
}).Should(Succeed())

0 commit comments

Comments
 (0)