Skip to content

Commit b606c14

Browse files
author
Per Goncalves da Silva
committed
patch subscription e2e flake
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent b3fe475 commit b606c14

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/e2e/subscription_e2e_test.go

+10-5
Original file line numberDiff line numberDiff line change
@@ -2597,19 +2597,24 @@ var _ = Describe("Subscription", func() {
25972597
err = magicCatalog.UpdateCatalog(context.Background(), provider)
25982598
Expect(err).To(BeNil())
25992599

2600-
By("waiting for the subscription to have v0.3.0 installed")
2600+
By("waiting for the subscription to switch to v0.3.0")
26012601
sub, err = fetchSubscription(crc, generatedNamespace.GetName(), subName, subscriptionHasCurrentCSV("example-operator.v0.3.0"))
26022602
Expect(err).Should(BeNil())
26032603

2604-
By("waiting for the subscription to have v0.3.0 installed with a Package deprecated condition")
2604+
By("waiting for the subscription to have be at latest known")
2605+
sub, err = fetchSubscription(crc, generatedNamespace.GetName(), subName, subscriptionStateAtLatestChecker())
2606+
Expect(err).Should(BeNil())
2607+
2608+
By("waiting for the subscription to have v0.3.0 installed without a bundle deprecated condition")
26052609
sub, err = fetchSubscription(crc, generatedNamespace.GetName(), subName,
26062610
subscriptionHasCondition(
2607-
operatorsv1alpha1.SubscriptionPackageDeprecated,
2608-
corev1.ConditionTrue,
2611+
operatorsv1alpha1.SubscriptionBundleDeprecated,
2612+
corev1.ConditionUnknown,
2613+
"",
26092614
"",
2610-
"olm.package/test-package: test-package has been deprecated. Please switch to another-package.",
26112615
),
26122616
)
2617+
Expect(err).Should(BeNil())
26132618

26142619
By("checking for the deprecated conditions")
26152620
By(`Operator is deprecated at only Package and Channel levels`)

0 commit comments

Comments
 (0)