@@ -102,7 +102,9 @@ var _ = Describe("vanilla ingress tests", func() {
102
102
WithIngressClassName (ingClass .Name ).
103
103
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
104
104
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ingClass , ing )
105
- resStack .Setup (ctx )
105
+ err := resStack .Setup (ctx )
106
+ Expect (err ).NotTo (HaveOccurred ())
107
+
106
108
defer resStack .TearDown (ctx )
107
109
108
110
lbARN , lbDNS := ExpectOneLBProvisionedForIngress (ctx , tf , ing )
@@ -138,7 +140,9 @@ var _ = Describe("vanilla ingress tests", func() {
138
140
AddHTTPRoute ("" , networking.HTTPIngressPath {Path : "/path" , PathType : & exact , Backend : ingBackend }).
139
141
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
140
142
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ing )
141
- resStack .Setup (ctx )
143
+ err := resStack .Setup (ctx )
144
+ Expect (err ).NotTo (HaveOccurred ())
145
+
142
146
defer resStack .TearDown (ctx )
143
147
144
148
lbARN , lbDNS := ExpectOneLBProvisionedForIngress (ctx , tf , ing )
@@ -183,7 +187,9 @@ var _ = Describe("vanilla ingress tests", func() {
183
187
WithIngressClassName (ingClass .Name ).
184
188
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
185
189
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ingClass , ing )
186
- resStack .Setup (ctx )
190
+ err := resStack .Setup (ctx )
191
+ Expect (err ).NotTo (HaveOccurred ())
192
+
187
193
defer resStack .TearDown (ctx )
188
194
189
195
ExpectNoLBProvisionedForIngress (ctx , tf , ing )
@@ -212,7 +218,9 @@ var _ = Describe("vanilla ingress tests", func() {
212
218
AddHTTPRoute ("" , networking.HTTPIngressPath {Path : "/path" , PathType : & exact , Backend : ingBackend }).
213
219
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
214
220
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ing )
215
- resStack .Setup (ctx )
221
+ err := resStack .Setup (ctx )
222
+ Expect (err ).NotTo (HaveOccurred ())
223
+
216
224
defer resStack .TearDown (ctx )
217
225
218
226
ExpectNoLBProvisionedForIngress (ctx , tf , ing )
@@ -240,7 +248,9 @@ var _ = Describe("vanilla ingress tests", func() {
240
248
AddHTTPRoute ("" , networking.HTTPIngressPath {Path : "/path" , PathType : & exact , Backend : ingBackend }).
241
249
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
242
250
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ing )
243
- resStack .Setup (ctx )
251
+ err := resStack .Setup (ctx )
252
+ Expect (err ).NotTo (HaveOccurred ())
253
+
244
254
defer resStack .TearDown (ctx )
245
255
246
256
ExpectNoLBProvisionedForIngress (ctx , tf , ing )
@@ -275,7 +285,9 @@ var _ = Describe("vanilla ingress tests", func() {
275
285
AddHTTPRoute ("" , networking.HTTPIngressPath {Path : "/path" , PathType : & exact , Backend : ingBackend }).
276
286
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
277
287
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ing )
278
- resStack .Setup (ctx )
288
+ err := resStack .Setup (ctx )
289
+ Expect (err ).NotTo (HaveOccurred ())
290
+
279
291
defer resStack .TearDown (ctx )
280
292
281
293
lbARN , lbDNS := ExpectOneLBProvisionedForIngress (ctx , tf , ing )
@@ -318,7 +330,9 @@ var _ = Describe("vanilla ingress tests", func() {
318
330
AddHTTPRoute ("" , networking.HTTPIngressPath {Path : "/path" , PathType : & exact , Backend : ingBackend }).
319
331
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
320
332
resStack := fixture .NewK8SResourceStack (tf , dp , svc , ing )
321
- resStack .Setup (ctx )
333
+ err := resStack .Setup (ctx )
334
+ Expect (err ).NotTo (HaveOccurred ())
335
+
322
336
defer resStack .TearDown (ctx )
323
337
324
338
lbARN , lbDNS := ExpectOneLBProvisionedForIngress (ctx , tf , ing )
@@ -389,7 +403,9 @@ var _ = Describe("vanilla ingress tests", func() {
389
403
AddHTTPRoute ("" , networking.HTTPIngressPath {Path : "/forward-multiple-tg" , PathType : & exact , Backend : ingForwardMultipleTGBackend }).
390
404
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
391
405
resStack := fixture .NewK8SResourceStack (tf , dp1 , svc1 , dp2 , svc2 , ing )
392
- resStack .Setup (ctx )
406
+ err := resStack .Setup (ctx )
407
+ Expect (err ).NotTo (HaveOccurred ())
408
+
393
409
defer resStack .TearDown (ctx )
394
410
395
411
lbARN , lbDNS := ExpectOneLBProvisionedForIngress (ctx , tf , ing )
@@ -503,7 +519,9 @@ var _ = Describe("vanilla ingress tests", func() {
503
519
AddHTTPRoute ("www.example.com" , networking.HTTPIngressPath {Path : "/path7" , PathType : & exact , Backend : ingRulePath7Backend }).
504
520
WithAnnotations (annotation ).Build (sandboxNS .Name , "ing" )
505
521
resStack := fixture .NewK8SResourceStack (tf , ing )
506
- resStack .Setup (ctx )
522
+ err := resStack .Setup (ctx )
523
+ Expect (err ).NotTo (HaveOccurred ())
524
+
507
525
defer resStack .TearDown (ctx )
508
526
509
527
lbARN , lbDNS := ExpectOneLBProvisionedForIngress (ctx , tf , ing )
0 commit comments