@@ -696,9 +696,9 @@ func TestOperatorGroupIntersection(t *testing.T) {
696
696
// Wait for csvB to have a CSV with a copied status in namespace C
697
697
698
698
// Create a catalog for csvA, csvB, and csvD
699
- pkgA := genName ("a" )
700
- pkgB := genName ("b" )
701
- pkgD := genName ("d" )
699
+ pkgA := genName ("a- " )
700
+ pkgB := genName ("b- " )
701
+ pkgD := genName ("d- " )
702
702
pkgAStable := pkgA + "-stable"
703
703
pkgBStable := pkgB + "-stable"
704
704
pkgDStable := pkgD + "-stable"
@@ -717,7 +717,7 @@ func TestOperatorGroupIntersection(t *testing.T) {
717
717
csvD := newCSV (pkgDStable , testNamespace , "" , * semver .New ("0.1.0" ), []apiextensions.CustomResourceDefinition {crdD }, nil , strategyD )
718
718
719
719
// Create namespaces
720
- nsA , nsB , nsC , nsD , nsE := genName ("a" ), genName ("b" ), genName ("c" ), genName ("d" ), genName ("e" )
720
+ nsA , nsB , nsC , nsD , nsE := genName ("a- " ), genName ("b- " ), genName ("c- " ), genName ("d- " ), genName ("e- " )
721
721
c := newKubeClient (t )
722
722
crc := newCRClient (t )
723
723
for _ , ns := range []string {nsA , nsB , nsC , nsD , nsE } {
@@ -773,9 +773,9 @@ func TestOperatorGroupIntersection(t *testing.T) {
773
773
require .NoError (t , err )
774
774
775
775
// Create operatorgroups
776
- groupA := newOperatorGroup (nsA , genName ("a" ), nil , nil , nil , false )
777
- groupB := newOperatorGroup (nsB , genName ("b" ), nil , nil , []string {nsC }, false )
778
- groupD := newOperatorGroup (nsD , genName ("d" ), nil , nil , []string {nsD , nsE }, false )
776
+ groupA := newOperatorGroup (nsA , genName ("a- " ), nil , nil , nil , false )
777
+ groupB := newOperatorGroup (nsB , genName ("b- " ), nil , nil , []string {nsC }, false )
778
+ groupD := newOperatorGroup (nsD , genName ("d- " ), nil , nil , []string {nsD , nsE }, false )
779
779
for _ , group := range []* v1alpha2.OperatorGroup {groupA , groupB , groupD } {
780
780
_ , err := crc .OperatorsV1alpha2 ().OperatorGroups (group .GetNamespace ()).Create (group )
781
781
require .NoError (t , err )
@@ -785,7 +785,7 @@ func TestOperatorGroupIntersection(t *testing.T) {
785
785
}
786
786
787
787
// Create subscription for csvD in namespaceD
788
- subDName := genName ("d" )
788
+ subDName := genName ("d- " )
789
789
cleanupSubD := createSubscriptionForCatalog (t , crc , nsD , subDName , catalog , pkgD , stableChannel , pkgDStable , v1alpha1 .ApprovalAutomatic )
790
790
defer cleanupSubD ()
791
791
subD , err := fetchSubscription (t , crc , nsD , subDName , subscriptionHasInstallPlanChecker )
@@ -808,7 +808,7 @@ func TestOperatorGroupIntersection(t *testing.T) {
808
808
require .NoError (t , awaitAnnotations (t , q , map [string ]string {v1alpha2 .OperatorGroupProvidedAPIsAnnotationKey : kvgD }))
809
809
810
810
// Create subscription for csvD2 in namespaceA
811
- subD2Name := genName ("d " )
811
+ subD2Name := genName ("d2- " )
812
812
cleanupSubD2 := createSubscriptionForCatalog (t , crc , nsA , subD2Name , catalog , pkgD , stableChannel , pkgDStable , v1alpha1 .ApprovalAutomatic )
813
813
defer cleanupSubD2 ()
814
814
subD2 , err := fetchSubscription (t , crc , nsA , subD2Name , subscriptionHasInstallPlanChecker )
@@ -832,7 +832,7 @@ func TestOperatorGroupIntersection(t *testing.T) {
832
832
require .NoError (t , err )
833
833
834
834
// Create subscription for csvA in namespaceA
835
- subAName := genName ("a" )
835
+ subAName := genName ("a- " )
836
836
cleanupSubA := createSubscriptionForCatalog (t , crc , nsA , subAName , catalog , pkgA , stableChannel , pkgAStable , v1alpha1 .ApprovalAutomatic )
837
837
defer cleanupSubA ()
838
838
subA , err := fetchSubscription (t , crc , nsA , subAName , subscriptionHasInstallPlanChecker )
@@ -855,7 +855,7 @@ func TestOperatorGroupIntersection(t *testing.T) {
855
855
require .NoError (t , err )
856
856
857
857
// Create subscription for csvB in namespaceB
858
- subBName := genName ("b" )
858
+ subBName := genName ("b- " )
859
859
cleanupSubB := createSubscriptionForCatalog (t , crc , nsB , subBName , catalog , pkgB , stableChannel , pkgBStable , v1alpha1 .ApprovalAutomatic )
860
860
defer cleanupSubB ()
861
861
subB , err := fetchSubscription (t , crc , nsB , subBName , subscriptionHasInstallPlanChecker )
@@ -928,8 +928,8 @@ func TestStaticProviderOperatorGroup(t *testing.T) {
928
928
// Ensure KindA.version.group providedAPI annotation on operatorGroupA
929
929
930
930
// Create a catalog for csvA, csvB
931
- pkgA := genName ("a" )
932
- pkgB := genName ("b" )
931
+ pkgA := genName ("a- " )
932
+ pkgB := genName ("b- " )
933
933
pkgAStable := pkgA + "-stable"
934
934
pkgBStable := pkgB + "-stable"
935
935
stableChannel := "stable"
@@ -943,7 +943,7 @@ func TestStaticProviderOperatorGroup(t *testing.T) {
943
943
csvB := newCSV (pkgBStable , testNamespace , "" , * semver .New ("0.1.0" ), []apiextensions.CustomResourceDefinition {crdB }, nil , strategyB )
944
944
945
945
// Create namespaces
946
- nsA , nsB , nsC , nsD := genName ("a" ), genName ("b" ), genName ("c" ), genName ("d" )
946
+ nsA , nsB , nsC , nsD := genName ("a- " ), genName ("b- " ), genName ("c- " ), genName ("d- " )
947
947
c := newKubeClient (t )
948
948
crc := newCRClient (t )
949
949
for _ , ns := range []string {nsA , nsB , nsC , nsD } {
@@ -989,9 +989,9 @@ func TestStaticProviderOperatorGroup(t *testing.T) {
989
989
require .NoError (t , err )
990
990
991
991
// Create OperatorGroups
992
- groupA := newOperatorGroup (nsA , genName ("a" ), map [string ]string {v1alpha2 .OperatorGroupProvidedAPIsAnnotationKey : kvgA }, nil , []string {nsD }, true )
993
- groupB := newOperatorGroup (nsB , genName ("b" ), nil , nil , nil , false )
994
- groupC := newOperatorGroup (nsC , genName ("d" ), nil , nil , []string {nsC }, false )
992
+ groupA := newOperatorGroup (nsA , genName ("a- " ), map [string ]string {v1alpha2 .OperatorGroupProvidedAPIsAnnotationKey : kvgA }, nil , []string {nsD }, true )
993
+ groupB := newOperatorGroup (nsB , genName ("b- " ), nil , nil , nil , false )
994
+ groupC := newOperatorGroup (nsC , genName ("d- " ), nil , nil , []string {nsC }, false )
995
995
for _ , group := range []* v1alpha2.OperatorGroup {groupA , groupB , groupC } {
996
996
_ , err := crc .OperatorsV1alpha2 ().OperatorGroups (group .GetNamespace ()).Create (group )
997
997
require .NoError (t , err )
@@ -1001,7 +1001,8 @@ func TestStaticProviderOperatorGroup(t *testing.T) {
1001
1001
}
1002
1002
1003
1003
// Create subscription for csvA in namespaceB
1004
- subAName := genName ("a" )
1004
+ subAName := genName ("a-" +
1005
+ "" )
1005
1006
cleanupSubA := createSubscriptionForCatalog (t , crc , nsB , subAName , catalog , pkgA , stableChannel , pkgAStable , v1alpha1 .ApprovalAutomatic )
1006
1007
defer cleanupSubA ()
1007
1008
subA , err := fetchSubscription (t , crc , nsB , subAName , subscriptionHasInstallPlanChecker )
@@ -1053,7 +1054,7 @@ func TestStaticProviderOperatorGroup(t *testing.T) {
1053
1054
require .NoError (t , awaitAnnotations (t , q , map [string ]string {v1alpha2 .OperatorGroupProvidedAPIsAnnotationKey : kvgA }))
1054
1055
1055
1056
// Create subscription for csvB in namespaceB
1056
- subBName := genName ("b" )
1057
+ subBName := genName ("b- " )
1057
1058
cleanupSubB := createSubscriptionForCatalog (t , crc , nsB , subBName , catalog , pkgB , stableChannel , pkgBStable , v1alpha1 .ApprovalAutomatic )
1058
1059
defer cleanupSubB ()
1059
1060
subB , err := fetchSubscription (t , crc , nsB , subBName , subscriptionHasInstallPlanChecker )
@@ -1126,7 +1127,7 @@ func TestCSVCopyWatchingAllNamespaces(t *testing.T) {
1126
1127
otherNamespaceName := genName (opGroupNamespace + "-" )
1127
1128
1128
1129
t .Log ("Creating CRD" )
1129
- mainCRDPlural := genName ("opgroup" )
1130
+ mainCRDPlural := genName ("opgroup- " )
1130
1131
mainCRD := newCRD (mainCRDPlural )
1131
1132
cleanupCRD , err := createCRD (c , mainCRD )
1132
1133
require .NoError (t , err )
0 commit comments