@@ -1336,6 +1336,14 @@ func TestCheckInstallPlanStatus(t *testing.T) {
1336
1336
now : & now ,
1337
1337
status : & v1alpha1.InstallPlanStatus {
1338
1338
Phase : v1alpha1 .InstallPlanPhaseInstalling ,
1339
+ Conditions : []v1alpha1.InstallPlanCondition {
1340
+ {
1341
+ Type : v1alpha1 .InstallPlanInstalled ,
1342
+ Message : "no operatorgroup found that is managing this namespace" ,
1343
+ Reason : v1alpha1 .InstallPlanConditionReason ("Installing" ),
1344
+ Status : corev1 .ConditionFalse ,
1345
+ },
1346
+ },
1339
1347
},
1340
1348
},
1341
1349
want : want {
@@ -1346,7 +1354,7 @@ func TestCheckInstallPlanStatus(t *testing.T) {
1346
1354
},
1347
1355
Status : v1alpha1.SubscriptionStatus {
1348
1356
Conditions : []v1alpha1.SubscriptionCondition {
1349
- planPendingCondition (corev1 .ConditionTrue , string (v1alpha1 .InstallPlanPhaseInstalling ), "" , & now ),
1357
+ planPendingCondition (corev1 .ConditionTrue , string (v1alpha1 .InstallPlanPhaseInstalling ), "no operatorgroup found that is managing this namespace " , & now ),
1350
1358
},
1351
1359
LastUpdated : now ,
1352
1360
},
@@ -1535,6 +1543,17 @@ func TestCheckInstallPlanStatus(t *testing.T) {
1535
1543
Reason : v1alpha1 .InstallPlanReasonComponentFailed ,
1536
1544
},
1537
1545
},
1546
+ BundleLookups : []v1alpha1.BundleLookup {
1547
+ {
1548
+ Conditions : []v1alpha1.BundleLookupCondition {
1549
+ {
1550
+ Type : v1alpha1 .BundleLookupPending ,
1551
+ Status : corev1 .ConditionTrue ,
1552
+ Message : "unpack job not completed: Unpack pod(olm/c5a4) container(pull) is pending. Reason: ImagePullBackOff, Message: Back-off pulling image" ,
1553
+ },
1554
+ },
1555
+ },
1556
+ },
1538
1557
},
1539
1558
},
1540
1559
want : want {
@@ -1545,7 +1564,7 @@ func TestCheckInstallPlanStatus(t *testing.T) {
1545
1564
},
1546
1565
Status : v1alpha1.SubscriptionStatus {
1547
1566
Conditions : []v1alpha1.SubscriptionCondition {
1548
- planFailedCondition (corev1 .ConditionTrue , string (v1alpha1 .InstallPlanReasonComponentFailed ), "" , & now ),
1567
+ planFailedCondition (corev1 .ConditionTrue , string (v1alpha1 .InstallPlanReasonComponentFailed ), "unpack job not completed: Unpack pod(olm/c5a4) container(pull) is pending. Reason: ImagePullBackOff, Message: Back-off pulling image. " , & now ),
1549
1568
},
1550
1569
LastUpdated : now ,
1551
1570
},
0 commit comments