@@ -180,7 +180,7 @@ tests:
180
180
in_use:
181
181
enabled: true
182
182
183
- - it : Default No Proxy
183
+ - it : Default Proxy
184
184
asserts :
185
185
- hasDocuments :
186
186
count : 1
@@ -193,11 +193,10 @@ tests:
193
193
value : shield-namespace
194
194
- exists :
195
195
path : data["host-shield.yaml"]
196
- - matchRegex :
196
+ - notMatchRegex :
197
197
path : data["host-shield.yaml"]
198
- pattern : |-
199
- proxy:
200
- no_proxy: 127.0.0.1,localhost,169.254.0.0/16,.cluster.local
198
+ pattern : |
199
+ proxy: .*
201
200
202
201
- it : With Only HTTP Proxy (http protocol)
203
202
set :
@@ -220,6 +219,7 @@ tests:
220
219
pattern : |-
221
220
proxy:
222
221
http_proxy: http://proxy.example.com:8080
222
+ no_proxy: 127.0.0.1,localhost,169.254.0.0/16,.cluster.local
223
223
224
224
- it : With Only HTTP Proxy (http protocol) [Existing Secret]
225
225
set :
@@ -242,6 +242,7 @@ tests:
242
242
pattern : |-
243
243
proxy:
244
244
http_proxy: http://proxy-existing.example.com:8080
245
+ no_proxy: 127.0.0.1,localhost,169.254.0.0/16,.cluster.local
245
246
246
247
- it : With Only HTTPS Proxy (https protocol)
247
248
set :
@@ -264,6 +265,7 @@ tests:
264
265
pattern : |
265
266
proxy:
266
267
https_proxy: https://proxy.example.com:8080
268
+ no_proxy: 127.0.0.1,localhost,169.254.0.0/16,.cluster.local
267
269
268
270
- it : With Only HTTPS Proxy (https protocol) [Existing Secret]
269
271
set :
@@ -286,6 +288,7 @@ tests:
286
288
pattern : |
287
289
proxy:
288
290
https_proxy: https://proxy-existing.example.com:8080
291
+ no_proxy: 127.0.0.1,localhost,169.254.0.0/16,.cluster.local
289
292
290
293
- it : With Only NO Proxy
291
294
set :
@@ -303,15 +306,63 @@ tests:
303
306
value : shield-namespace
304
307
- exists :
305
308
path : data["host-shield.yaml"]
306
- - matchRegex :
309
+ - notMatchRegex :
310
+ path : data["host-shield.yaml"]
311
+ pattern : |
312
+ proxy: .*
313
+
314
+ - it : With Only NO Proxy [Existing Secret]
315
+ set :
316
+ proxy :
317
+ no_proxy_existing_secret : " proxy-secret"
318
+ asserts :
319
+ - hasDocuments :
320
+ count : 1
321
+ - containsDocument :
322
+ kind : ConfigMap
323
+ apiVersion : v1
324
+ name : release-name-shield-host-windows
325
+ - equal :
326
+ path : metadata.namespace
327
+ value : shield-namespace
328
+ - exists :
329
+ path : data["host-shield.yaml"]
330
+ - notMatchRegex :
307
331
path : data["host-shield.yaml"]
308
332
pattern : |
333
+ proxy: .*
334
+
335
+ - it : With No Proxy
336
+ set :
337
+ proxy :
338
+ http_proxy : " http://proxy.example.com:8080"
339
+ https_proxy : " https://proxy.example.com:8080"
340
+ no_proxy : " example.com"
341
+ asserts :
342
+ - hasDocuments :
343
+ count : 1
344
+ - containsDocument :
345
+ kind : ConfigMap
346
+ apiVersion : v1
347
+ name : release-name-shield-host-windows
348
+ - equal :
349
+ path : metadata.namespace
350
+ value : shield-namespace
351
+ - exists :
352
+ path : data["host-shield.yaml"]
353
+ - matchRegex :
354
+ path : data["host-shield.yaml"]
355
+ pattern : |-
309
356
proxy:
357
+ http_proxy: http://proxy.example.com:8080
358
+ https_proxy: https://proxy.example.com:8080
310
359
no_proxy: example.com,127.0.0.1,localhost,169.254.0.0/16,.cluster.local
311
360
312
- - it : With Only NO Proxy [Existing Secret]
361
+ - it : With No Proxy [Existing Secret]
313
362
set :
314
363
proxy :
364
+ http_proxy_existing_secret : " proxy-secret"
365
+ https_proxy_existing_secret : " proxy-secret"
315
366
no_proxy_existing_secret : " proxy-secret"
316
367
asserts :
317
368
- hasDocuments :
@@ -327,8 +378,10 @@ tests:
327
378
path : data["host-shield.yaml"]
328
379
- matchRegex :
329
380
path : data["host-shield.yaml"]
330
- pattern : |
381
+ pattern : |-
331
382
proxy:
383
+ http_proxy: http://proxy-existing.example.com:8080
384
+ https_proxy: https://proxy-existing.example.com:8080
332
385
no_proxy: example.com
333
386
334
387
- it : Alternative regions (default)
0 commit comments