@@ -2595,14 +2595,20 @@ var _ = Describe("Subscription", func() {
2595
2595
err = magicCatalog .UpdateCatalog (context .Background (), provider )
2596
2596
Expect (err ).To (BeNil ())
2597
2597
2598
- By ("waiting for the subscription to have v0.3.0 installed with a Package deprecated condition" )
2599
- sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName , subscriptionHasCondition (
2600
- v1alpha1 .SubscriptionPackageDeprecated ,
2601
- corev1 .ConditionTrue ,
2602
- "" ,
2603
- "olm.package/test-package: test-package has been deprecated. Please switch to another-package." ))
2598
+ By ("waiting for the subscription to have v0.3.0 installed" )
2599
+ sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName , subscriptionHasCurrentCSV ("example-operator.v0.3.0" ))
2604
2600
Expect (err ).Should (BeNil ())
2605
2601
2602
+ By ("waiting for the subscription to have v0.3.0 installed with a Package deprecated condition" )
2603
+ sub , err = fetchSubscription (crc , generatedNamespace .GetName (), subName ,
2604
+ subscriptionHasCondition (
2605
+ operatorsv1alpha1 .SubscriptionPackageDeprecated ,
2606
+ corev1 .ConditionTrue ,
2607
+ "" ,
2608
+ "olm.package/test-package: test-package has been deprecated. Please switch to another-package." ,
2609
+ ),
2610
+ )
2611
+
2606
2612
By ("checking for the deprecated conditions" )
2607
2613
By (`Operator is deprecated at only Package and Channel levels` )
2608
2614
packageCondition := sub .Status .GetCondition (operatorsv1alpha1 .SubscriptionPackageDeprecated )
0 commit comments