@@ -2597,19 +2597,24 @@ var _ = Describe("Subscription", func() {
2597
2597
err = magicCatalog .UpdateCatalog (context .Background (), provider )
2598
2598
Expect (err ).To (BeNil ())
2599
2599
2600
- By ("waiting for the subscription to have v0.3.0 installed " )
2600
+ By ("waiting for the subscription to switch to v0.3.0" )
2601
2601
sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName , subscriptionHasCurrentCSV ("example-operator.v0.3.0" ))
2602
2602
Expect (err ).Should (BeNil ())
2603
2603
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" )
2605
2609
sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName ,
2606
2610
subscriptionHasCondition (
2607
- operatorsv1alpha1 .SubscriptionPackageDeprecated ,
2608
- corev1 .ConditionTrue ,
2611
+ operatorsv1alpha1 .SubscriptionBundleDeprecated ,
2612
+ corev1 .ConditionUnknown ,
2613
+ "" ,
2609
2614
"" ,
2610
- "olm.package/test-package: test-package has been deprecated. Please switch to another-package." ,
2611
2615
),
2612
2616
)
2617
+ Expect (err ).Should (BeNil ())
2613
2618
2614
2619
By ("checking for the deprecated conditions" )
2615
2620
By (`Operator is deprecated at only Package and Channel levels` )
0 commit comments