@@ -2597,14 +2597,20 @@ 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 with a Package deprecated condition" )
2601
- sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName , subscriptionHasCondition (
2602
- operatorsv1alpha1 .SubscriptionPackageDeprecated ,
2603
- corev1 .ConditionTrue ,
2604
- "" ,
2605
- "olm.package/test-package: test-package has been deprecated. Please switch to another-package." ))
2600
+ By ("waiting for the subscription to have v0.3.0 installed" )
2601
+ sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName , subscriptionHasCurrentCSV ("example-operator.v0.3.0" ))
2606
2602
Expect (err ).Should (BeNil ())
2607
2603
2604
+ By ("waiting for the subscription to have v0.3.0 installed with a Package deprecated condition" )
2605
+ sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName ,
2606
+ subscriptionHasCondition (
2607
+ operatorsv1alpha1 .SubscriptionPackageDeprecated ,
2608
+ corev1 .ConditionTrue ,
2609
+ "" ,
2610
+ "olm.package/test-package: test-package has been deprecated. Please switch to another-package." ,
2611
+ ),
2612
+ )
2613
+
2608
2614
By ("checking for the deprecated conditions" )
2609
2615
By (`Operator is deprecated at only Package and Channel levels` )
2610
2616
packageCondition := sub .Status .GetCondition (operatorsv1alpha1 .SubscriptionPackageDeprecated )
0 commit comments