@@ -33,10 +33,10 @@ import (
33
33
var _ = Describe ("CSV" , func () {
34
34
It ("create with unmet requirements mini kube version" , func () {
35
35
36
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
36
+ defer cleaner .NotifyTestComplete (true )
37
37
38
- c := newKubeClient (GinkgoT () )
39
- crc := newCRClient (GinkgoT () )
38
+ c := newKubeClient ()
39
+ crc := newCRClient ()
40
40
41
41
depName := genName ("dep-" )
42
42
csv := v1alpha1.ClusterServiceVersion {
@@ -85,10 +85,10 @@ var _ = Describe("CSV", func() {
85
85
// TODO: same test but missing serviceaccount instead
86
86
It ("create with unmet requirements CRD" , func () {
87
87
88
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
88
+ defer cleaner .NotifyTestComplete (true )
89
89
90
- c := newKubeClient (GinkgoT () )
91
- crc := newCRClient (GinkgoT () )
90
+ c := newKubeClient ()
91
+ crc := newCRClient ()
92
92
93
93
depName := genName ("dep-" )
94
94
csv := v1alpha1.ClusterServiceVersion {
@@ -147,10 +147,10 @@ var _ = Describe("CSV", func() {
147
147
})
148
148
It ("create with unmet permissions CRD" , func () {
149
149
150
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
150
+ defer cleaner .NotifyTestComplete (true )
151
151
152
- c := newKubeClient (GinkgoT () )
153
- crc := newCRClient (GinkgoT () )
152
+ c := newKubeClient ()
153
+ crc := newCRClient ()
154
154
155
155
saName := genName ("dep-" )
156
156
permissions := []v1alpha1.StrategyDeploymentPermissions {
@@ -257,10 +257,10 @@ var _ = Describe("CSV", func() {
257
257
})
258
258
It ("create with unmet requirements API service" , func () {
259
259
260
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
260
+ defer cleaner .NotifyTestComplete (true )
261
261
262
- c := newKubeClient (GinkgoT () )
263
- crc := newCRClient (GinkgoT () )
262
+ c := newKubeClient ()
263
+ crc := newCRClient ()
264
264
265
265
depName := genName ("dep-" )
266
266
csv := v1alpha1.ClusterServiceVersion {
@@ -319,10 +319,10 @@ var _ = Describe("CSV", func() {
319
319
})
320
320
It ("create with unmet permissions API service" , func () {
321
321
322
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
322
+ defer cleaner .NotifyTestComplete (true )
323
323
324
- c := newKubeClient (GinkgoT () )
325
- crc := newCRClient (GinkgoT () )
324
+ c := newKubeClient ()
325
+ crc := newCRClient ()
326
326
327
327
saName := genName ("dep-" )
328
328
permissions := []v1alpha1.StrategyDeploymentPermissions {
@@ -409,10 +409,10 @@ var _ = Describe("CSV", func() {
409
409
})
410
410
It ("create with unmet requirements native API" , func () {
411
411
412
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
412
+ defer cleaner .NotifyTestComplete (true )
413
413
414
- c := newKubeClient (GinkgoT () )
415
- crc := newCRClient (GinkgoT () )
414
+ c := newKubeClient ()
415
+ crc := newCRClient ()
416
416
417
417
depName := genName ("dep-" )
418
418
csv := v1alpha1.ClusterServiceVersion {
@@ -462,10 +462,10 @@ var _ = Describe("CSV", func() {
462
462
// TODO: same test but create serviceaccount instead
463
463
It ("create requirements met CRD" , func () {
464
464
465
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
465
+ defer cleaner .NotifyTestComplete (true )
466
466
467
- c := newKubeClient (GinkgoT () )
468
- crc := newCRClient (GinkgoT () )
467
+ c := newKubeClient ()
468
+ crc := newCRClient ()
469
469
470
470
sa := corev1.ServiceAccount {}
471
471
sa .SetName (genName ("sa-" ))
@@ -724,10 +724,10 @@ var _ = Describe("CSV", func() {
724
724
})
725
725
It ("create requirements met API service" , func () {
726
726
727
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
727
+ defer cleaner .NotifyTestComplete (true )
728
728
729
- c := newKubeClient (GinkgoT () )
730
- crc := newCRClient (GinkgoT () )
729
+ c := newKubeClient ()
730
+ crc := newCRClient ()
731
731
732
732
sa := corev1.ServiceAccount {}
733
733
sa .SetName (genName ("sa-" ))
@@ -887,10 +887,10 @@ var _ = Describe("CSV", func() {
887
887
})
888
888
It ("create with owned API service" , func () {
889
889
890
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
890
+ defer cleaner .NotifyTestComplete (true )
891
891
892
- c := newKubeClient (GinkgoT () )
893
- crc := newCRClient (GinkgoT () )
892
+ c := newKubeClient ()
893
+ crc := newCRClient ()
894
894
895
895
depName := genName ("hat-server" )
896
896
mockGroup := fmt .Sprintf ("hats.%s.redhat.com" , genName ("" ))
@@ -1076,10 +1076,10 @@ var _ = Describe("CSV", func() {
1076
1076
})
1077
1077
It ("update with owned API service" , func () {
1078
1078
1079
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
1079
+ defer cleaner .NotifyTestComplete (true )
1080
1080
1081
- c := newKubeClient (GinkgoT () )
1082
- crc := newCRClient (GinkgoT () )
1081
+ c := newKubeClient ()
1082
+ crc := newCRClient ()
1083
1083
1084
1084
depName := genName ("hat-server" )
1085
1085
mockGroup := fmt .Sprintf ("hats.%s.redhat.com" , genName ("" ))
@@ -1279,10 +1279,10 @@ var _ = Describe("CSV", func() {
1279
1279
})
1280
1280
It ("create same CSV with owned API service multi namespace" , func () {
1281
1281
1282
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
1282
+ defer cleaner .NotifyTestComplete (true )
1283
1283
1284
- c := newKubeClient (GinkgoT () )
1285
- crc := newCRClient (GinkgoT () )
1284
+ c := newKubeClient ()
1285
+ crc := newCRClient ()
1286
1286
1287
1287
// Create new namespace in a new operator group
1288
1288
secondNamespaceName := genName (testNamespace + "-" )
@@ -1484,9 +1484,9 @@ var _ = Describe("CSV", func() {
1484
1484
})
1485
1485
It ("orphaned API service clean up" , func () {
1486
1486
1487
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
1487
+ defer cleaner .NotifyTestComplete (true )
1488
1488
1489
- c := newKubeClient (GinkgoT () )
1489
+ c := newKubeClient ()
1490
1490
1491
1491
mockGroup := fmt .Sprintf ("hats.%s.redhat.com" , genName ("" ))
1492
1492
version := "v1alpha1"
@@ -1550,10 +1550,10 @@ var _ = Describe("CSV", func() {
1550
1550
})
1551
1551
It ("update same deployment name" , func () {
1552
1552
1553
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
1553
+ defer cleaner .NotifyTestComplete (true )
1554
1554
1555
- c := newKubeClient (GinkgoT () )
1556
- crc := newCRClient (GinkgoT () )
1555
+ c := newKubeClient ()
1556
+ crc := newCRClient ()
1557
1557
1558
1558
// Create dependency first (CRD)
1559
1559
crdPlural := genName ("ins" )
@@ -1734,10 +1734,10 @@ var _ = Describe("CSV", func() {
1734
1734
})
1735
1735
It ("update different deployment name" , func () {
1736
1736
1737
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
1737
+ defer cleaner .NotifyTestComplete (true )
1738
1738
1739
- c := newKubeClient (GinkgoT () )
1740
- crc := newCRClient (GinkgoT () )
1739
+ c := newKubeClient ()
1740
+ crc := newCRClient ()
1741
1741
1742
1742
// Create dependency first (CRD)
1743
1743
crdPlural := genName ("ins2" )
@@ -1916,10 +1916,10 @@ var _ = Describe("CSV", func() {
1916
1916
})
1917
1917
It ("update multiple intermediates" , func () {
1918
1918
1919
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
1919
+ defer cleaner .NotifyTestComplete (true )
1920
1920
1921
- c := newKubeClient (GinkgoT () )
1922
- crc := newCRClient (GinkgoT () )
1921
+ c := newKubeClient ()
1922
+ crc := newCRClient ()
1923
1923
1924
1924
// Create dependency first (CRD)
1925
1925
crdPlural := genName ("ins3" )
@@ -2104,10 +2104,10 @@ var _ = Describe("CSV", func() {
2104
2104
})
2105
2105
It ("update in place" , func () {
2106
2106
2107
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
2107
+ defer cleaner .NotifyTestComplete (true )
2108
2108
2109
- c := newKubeClient (GinkgoT () )
2110
- crc := newCRClient (GinkgoT () )
2109
+ c := newKubeClient ()
2110
+ crc := newCRClient ()
2111
2111
2112
2112
// Create dependency first (CRD)
2113
2113
crdPlural := genName ("ins" )
@@ -2258,10 +2258,10 @@ var _ = Describe("CSV", func() {
2258
2258
})
2259
2259
It ("update multiple version CRD" , func () {
2260
2260
2261
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
2261
+ defer cleaner .NotifyTestComplete (true )
2262
2262
2263
- c := newKubeClient (GinkgoT () )
2264
- crc := newCRClient (GinkgoT () )
2263
+ c := newKubeClient ()
2264
+ crc := newCRClient ()
2265
2265
2266
2266
// Create initial CRD which has 2 versions: v1alpha1 & v1alpha2
2267
2267
crdPlural := genName ("ins4" )
@@ -2539,10 +2539,10 @@ var _ = Describe("CSV", func() {
2539
2539
})
2540
2540
It ("update modify deployment name" , func () {
2541
2541
2542
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
2542
+ defer cleaner .NotifyTestComplete (true )
2543
2543
2544
- c := newKubeClient (GinkgoT () )
2545
- crc := newCRClient (GinkgoT () )
2544
+ c := newKubeClient ()
2545
+ crc := newCRClient ()
2546
2546
2547
2547
// Create dependency first (CRD)
2548
2548
crdPlural := genName ("ins2" )
@@ -2691,10 +2691,10 @@ var _ = Describe("CSV", func() {
2691
2691
})
2692
2692
It ("create requirements events" , func () {
2693
2693
GinkgoT ().Skip ()
2694
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
2694
+ defer cleaner .NotifyTestComplete (true )
2695
2695
2696
- c := newKubeClient (GinkgoT () )
2697
- crc := newCRClient (GinkgoT () )
2696
+ c := newKubeClient ()
2697
+ crc := newCRClient ()
2698
2698
2699
2699
sa := corev1.ServiceAccount {}
2700
2700
sa .SetName (genName ("sa-" ))
@@ -2909,10 +2909,10 @@ var _ = Describe("CSV", func() {
2909
2909
// TODO: test behavior when replaces field doesn't point to existing CSV
2910
2910
It ("status invalid CSV" , func () {
2911
2911
2912
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
2912
+ defer cleaner .NotifyTestComplete (true )
2913
2913
2914
- c := newKubeClient (GinkgoT () )
2915
- crc := newCRClient (GinkgoT () )
2914
+ c := newKubeClient ()
2915
+ crc := newCRClient ()
2916
2916
2917
2917
// Create CRD
2918
2918
crdPlural := genName ("ins" )
@@ -3023,10 +3023,10 @@ var _ = Describe("CSV", func() {
3023
3023
})
3024
3024
3025
3025
It ("api service resource migrated if adoptable" , func () {
3026
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
3026
+ defer cleaner .NotifyTestComplete (true )
3027
3027
3028
- c := newKubeClient (GinkgoT () )
3029
- crc := newCRClient (GinkgoT () )
3028
+ c := newKubeClient ()
3029
+ crc := newCRClient ()
3030
3030
3031
3031
depName := genName ("hat-server" )
3032
3032
mockGroup := fmt .Sprintf ("hats.%s.redhat.com" , genName ("" ))
@@ -3107,10 +3107,10 @@ var _ = Describe("CSV", func() {
3107
3107
})
3108
3108
3109
3109
It ("API service resource not migrated if not adoptable" , func () {
3110
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
3110
+ defer cleaner .NotifyTestComplete (true )
3111
3111
3112
- c := newKubeClient (GinkgoT () )
3113
- crc := newCRClient (GinkgoT () )
3112
+ c := newKubeClient ()
3113
+ crc := newCRClient ()
3114
3114
3115
3115
depName := genName ("hat-server" )
3116
3116
mockGroup := fmt .Sprintf ("hats.%s.redhat.com" , genName ("" ))
@@ -3194,10 +3194,10 @@ var _ = Describe("CSV", func() {
3194
3194
})
3195
3195
3196
3196
It ("multiple API services on a single pod" , func () {
3197
- defer cleaner .NotifyTestComplete (GinkgoT (), true )
3197
+ defer cleaner .NotifyTestComplete (true )
3198
3198
3199
- c := newKubeClient (GinkgoT () )
3200
- crc := newCRClient (GinkgoT () )
3199
+ c := newKubeClient ()
3200
+ crc := newCRClient ()
3201
3201
3202
3202
// Create the deployment that both APIServices will be deployed to.
3203
3203
depName := genName ("hat-server" )
@@ -3622,7 +3622,7 @@ func waitForCSVToDelete(t GinkgoTInterface, c versioned.Interface, name string)
3622
3622
}
3623
3623
3624
3624
func deleteLegacyAPIResources (t GinkgoTInterface , desc v1alpha1.APIServiceDescription ) {
3625
- c := newKubeClient (GinkgoT () )
3625
+ c := newKubeClient ()
3626
3626
3627
3627
apiServiceName := fmt .Sprintf ("%s.%s" , desc .Version , desc .Group )
3628
3628
@@ -3646,7 +3646,7 @@ func deleteLegacyAPIResources(t GinkgoTInterface, desc v1alpha1.APIServiceDescri
3646
3646
}
3647
3647
3648
3648
func createLegacyAPIResources (t GinkgoTInterface , csv * v1alpha1.ClusterServiceVersion , desc v1alpha1.APIServiceDescription ) {
3649
- c := newKubeClient (GinkgoT () )
3649
+ c := newKubeClient ()
3650
3650
3651
3651
apiServiceName := fmt .Sprintf ("%s.%s" , desc .Version , desc .Group )
3652
3652
@@ -3733,7 +3733,7 @@ func createLegacyAPIResources(t GinkgoTInterface, csv *v1alpha1.ClusterServiceVe
3733
3733
}
3734
3734
3735
3735
func checkLegacyAPIResources (t GinkgoTInterface , desc v1alpha1.APIServiceDescription , expectedIsNotFound bool ) {
3736
- c := newKubeClient (GinkgoT () )
3736
+ c := newKubeClient ()
3737
3737
apiServiceName := fmt .Sprintf ("%s.%s" , desc .Version , desc .Group )
3738
3738
3739
3739
// Attempt to create the legacy service
0 commit comments