@@ -34,9 +34,11 @@ import (
3434)
3535
3636var _ = Describe ("CSV" , func () {
37- It ("create with unmet requirements mini kube version" , func () {
37+ AfterEach (func () {
38+ TearDown (testNamespace )
39+ })
3840
39- defer cleaner . NotifyTestComplete ( true )
41+ It ( "create with unmet requirements mini kube version" , func () {
4042
4143 c := newKubeClient ()
4244 crc := newCRClient ()
@@ -88,8 +90,6 @@ var _ = Describe("CSV", func() {
8890 // TODO: same test but missing serviceaccount instead
8991 It ("create with unmet requirements CRD" , func () {
9092
91- defer cleaner .NotifyTestComplete (true )
92-
9393 c := newKubeClient ()
9494 crc := newCRClient ()
9595
@@ -150,8 +150,6 @@ var _ = Describe("CSV", func() {
150150 })
151151 It ("create with unmet permissions CRD" , func () {
152152
153- defer cleaner .NotifyTestComplete (true )
154-
155153 c := newKubeClient ()
156154 crc := newCRClient ()
157155
@@ -260,8 +258,6 @@ var _ = Describe("CSV", func() {
260258 })
261259 It ("create with unmet requirements API service" , func () {
262260
263- defer cleaner .NotifyTestComplete (true )
264-
265261 c := newKubeClient ()
266262 crc := newCRClient ()
267263
@@ -322,8 +318,6 @@ var _ = Describe("CSV", func() {
322318 })
323319 It ("create with unmet permissions API service" , func () {
324320
325- defer cleaner .NotifyTestComplete (true )
326-
327321 c := newKubeClient ()
328322 crc := newCRClient ()
329323
@@ -412,8 +406,6 @@ var _ = Describe("CSV", func() {
412406 })
413407 It ("create with unmet requirements native API" , func () {
414408
415- defer cleaner .NotifyTestComplete (true )
416-
417409 c := newKubeClient ()
418410 crc := newCRClient ()
419411
@@ -465,8 +457,6 @@ var _ = Describe("CSV", func() {
465457 // TODO: same test but create serviceaccount instead
466458 It ("create requirements met CRD" , func () {
467459
468- defer cleaner .NotifyTestComplete (true )
469-
470460 c := newKubeClient ()
471461 crc := newCRClient ()
472462
@@ -727,8 +717,6 @@ var _ = Describe("CSV", func() {
727717 })
728718 It ("create requirements met API service" , func () {
729719
730- defer cleaner .NotifyTestComplete (true )
731-
732720 c := newKubeClient ()
733721 crc := newCRClient ()
734722
@@ -890,8 +878,6 @@ var _ = Describe("CSV", func() {
890878 })
891879 It ("create with owned API service" , func () {
892880
893- defer cleaner .NotifyTestComplete (true )
894-
895881 c := newKubeClient ()
896882 crc := newCRClient ()
897883
@@ -1081,8 +1067,6 @@ var _ = Describe("CSV", func() {
10811067 })
10821068 It ("update with owned API service" , func () {
10831069
1084- defer cleaner .NotifyTestComplete (true )
1085-
10861070 c := newKubeClient ()
10871071 crc := newCRClient ()
10881072
@@ -1284,8 +1268,6 @@ var _ = Describe("CSV", func() {
12841268 })
12851269 It ("create same CSV with owned API service multi namespace" , func () {
12861270
1287- defer cleaner .NotifyTestComplete (true )
1288-
12891271 c := newKubeClient ()
12901272 crc := newCRClient ()
12911273
@@ -1489,8 +1471,6 @@ var _ = Describe("CSV", func() {
14891471 })
14901472 It ("orphaned API service clean up" , func () {
14911473
1492- defer cleaner .NotifyTestComplete (true )
1493-
14941474 c := newKubeClient ()
14951475
14961476 mockGroup := fmt .Sprintf ("hats.%s.redhat.com" , genName ("" ))
@@ -1556,8 +1536,6 @@ var _ = Describe("CSV", func() {
15561536 })
15571537 It ("update same deployment name" , func () {
15581538
1559- defer cleaner .NotifyTestComplete (true )
1560-
15611539 c := newKubeClient ()
15621540 crc := newCRClient ()
15631541
@@ -1740,8 +1718,6 @@ var _ = Describe("CSV", func() {
17401718 })
17411719 It ("update different deployment name" , func () {
17421720
1743- defer cleaner .NotifyTestComplete (true )
1744-
17451721 c := newKubeClient ()
17461722 crc := newCRClient ()
17471723
@@ -1922,8 +1898,6 @@ var _ = Describe("CSV", func() {
19221898 })
19231899 It ("update multiple intermediates" , func () {
19241900
1925- defer cleaner .NotifyTestComplete (true )
1926-
19271901 c := newKubeClient ()
19281902 crc := newCRClient ()
19291903
@@ -2110,8 +2084,6 @@ var _ = Describe("CSV", func() {
21102084 })
21112085 It ("update in place" , func () {
21122086
2113- defer cleaner .NotifyTestComplete (true )
2114-
21152087 c := newKubeClient ()
21162088 crc := newCRClient ()
21172089
@@ -2264,8 +2236,6 @@ var _ = Describe("CSV", func() {
22642236 })
22652237 It ("update multiple version CRD" , func () {
22662238
2267- defer cleaner .NotifyTestComplete (true )
2268-
22692239 c := newKubeClient ()
22702240 crc := newCRClient ()
22712241
@@ -2545,8 +2515,6 @@ var _ = Describe("CSV", func() {
25452515 })
25462516 It ("update modify deployment name" , func () {
25472517
2548- defer cleaner .NotifyTestComplete (true )
2549-
25502518 c := newKubeClient ()
25512519 crc := newCRClient ()
25522520
@@ -2697,7 +2665,6 @@ var _ = Describe("CSV", func() {
26972665 })
26982666
26992667 It ("emits CSV requirement events" , func () {
2700- defer cleaner .NotifyTestComplete (true )
27012668
27022669 c := ctx .Ctx ().KubeClient ()
27032670 crc := ctx .Ctx ().OperatorClient ()
@@ -2785,8 +2752,6 @@ var _ = Describe("CSV", func() {
27852752 // TODO: test behavior when replaces field doesn't point to existing CSV
27862753 It ("status invalid CSV" , func () {
27872754
2788- defer cleaner .NotifyTestComplete (true )
2789-
27902755 c := newKubeClient ()
27912756 crc := newCRClient ()
27922757
@@ -2899,7 +2864,6 @@ var _ = Describe("CSV", func() {
28992864 })
29002865
29012866 It ("api service resource migrated if adoptable" , func () {
2902- defer cleaner .NotifyTestComplete (true )
29032867
29042868 c := newKubeClient ()
29052869 crc := newCRClient ()
@@ -2983,7 +2947,6 @@ var _ = Describe("CSV", func() {
29832947 })
29842948
29852949 It ("API service resource not migrated if not adoptable" , func () {
2986- defer cleaner .NotifyTestComplete (true )
29872950
29882951 c := newKubeClient ()
29892952 crc := newCRClient ()
@@ -3070,7 +3033,6 @@ var _ = Describe("CSV", func() {
30703033 })
30713034
30723035 It ("multiple API services on a single pod" , func () {
3073- defer cleaner .NotifyTestComplete (true )
30743036
30753037 c := newKubeClient ()
30763038 crc := newCRClient ()
0 commit comments