@@ -1364,11 +1364,11 @@ func TestValidateExistingCRs(t *testing.T) {
1364
1364
func TestSyncOperatorGroup (t * testing.T ) {
1365
1365
namespace := "ns"
1366
1366
inOperatorGroup := operatorGroup ("og" , "sa" , namespace ,
1367
- & corev1.ObjectReference {
1368
- Kind : "ServiceAccount" ,
1369
- Namespace : namespace ,
1370
- Name : "sa" ,
1371
- })
1367
+ & corev1.ObjectReference {
1368
+ Kind : "ServiceAccount" ,
1369
+ Namespace : namespace ,
1370
+ Name : "sa" ,
1371
+ })
1372
1372
tests := []struct {
1373
1373
testName string
1374
1374
err error
@@ -1378,26 +1378,26 @@ func TestSyncOperatorGroup(t *testing.T) {
1378
1378
clientObjs []runtime.Object
1379
1379
}{
1380
1380
{
1381
- testName : "OnComplete" ,
1382
- in : inOperatorGroup ,
1381
+ testName : "OnComplete" ,
1382
+ in : inOperatorGroup ,
1383
1383
clientObjs : []runtime.Object {
1384
1384
installPlan ("p" , namespace , v1alpha1 .InstallPlanPhaseComplete , "csv" ),
1385
1385
},
1386
1386
err : nil ,
1387
1387
expectedPhase : v1alpha1 .InstallPlanPhaseInstalling ,
1388
1388
expectedCondition : & v1alpha1.InstallPlanCondition {Type : v1alpha1 .InstallPlanInstalled , Status : corev1 .ConditionFalse , Reason : v1alpha1 .InstallPlanReasonComponentFailed ,
1389
- Message : "OperatorGroup updated" },
1389
+ Message : "OperatorGroup updated" },
1390
1390
},
1391
1391
{
1392
- testName : "OnOnstalling" ,
1393
- in : inOperatorGroup ,
1392
+ testName : "OnOnstalling" ,
1393
+ in : inOperatorGroup ,
1394
1394
clientObjs : []runtime.Object {
1395
1395
installPlan ("p" , namespace , v1alpha1 .InstallPlanPhaseNone , "csv" ),
1396
1396
},
1397
1397
err : nil ,
1398
1398
expectedPhase : v1alpha1 .InstallPlanPhaseInstalling ,
1399
1399
expectedCondition : & v1alpha1.InstallPlanCondition {Type : v1alpha1 .InstallPlanInstalled , Status : corev1 .ConditionFalse , Reason : v1alpha1 .InstallPlanReasonComponentFailed ,
1400
- Message : "OperatorGroup updated" },
1400
+ Message : "OperatorGroup updated" },
1401
1401
},
1402
1402
}
1403
1403
0 commit comments