Skip to content

Commit eb1a88e

Browse files
perdasilvaPer Goncalves da Silva
andcommitted
patch subscription e2e flake (#3302)
Signed-off-by: Per Goncalves da Silva <[email protected]> Co-authored-by: Per Goncalves da Silva <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 1404e916dec89d24c5ecfe52fec7f8f093fb917d
1 parent 25d1845 commit eb1a88e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

staging/operator-lifecycle-manager/test/e2e/subscription_e2e_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,14 +2609,23 @@ var _ = Describe("Subscription", func() {
26092609
),
26102610
)
26112611

2612+
By("waiting for the subscription to have v0.3.0 installed without a bundle deprecated condition")
2613+
sub, err = fetchSubscription(crc, generatedNamespace.GetName(), subName,
2614+
subscriptionHasCondition(
2615+
operatorsv1alpha1.SubscriptionBundleDeprecated,
2616+
corev1.ConditionUnknown,
2617+
"",
2618+
"",
2619+
),
2620+
)
2621+
Expect(err).Should(BeNil())
2622+
26122623
By("checking for the deprecated conditions")
26132624
By(`Operator is deprecated at only Package and Channel levels`)
26142625
packageCondition := sub.Status.GetCondition(operatorsv1alpha1.SubscriptionPackageDeprecated)
26152626
Expect(packageCondition.Status).To(Equal(corev1.ConditionTrue))
26162627
channelCondition := sub.Status.GetCondition(operatorsv1alpha1.SubscriptionChannelDeprecated)
26172628
Expect(channelCondition.Status).To(Equal(corev1.ConditionTrue))
2618-
bundleCondition = sub.Status.GetCondition(operatorsv1alpha1.SubscriptionBundleDeprecated)
2619-
Expect(bundleCondition.Status).To(Equal(corev1.ConditionUnknown))
26202629

26212630
By("verifying that a roll-up condition is present not containing bundle deprecation condition")
26222631
By(`Roll-up condition should be present and contain deprecation messages from Package and Channel levels`)

0 commit comments

Comments
 (0)