mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-21 10:57:01 +00:00
Add acceptance test for HTTPS_PROXY support
This commit is contained in:
parent
4e83800979
commit
73f65d7530
1 changed files with 7 additions and 0 deletions
|
|
@ -281,3 +281,10 @@ resetCacheFolder() {
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
[ "$output" = 'Summary: 2 resources found in 1 file - Valid: 2, Invalid: 0, Errors: 0, Skipped: 0' ]
|
[ "$output" = 'Summary: 2 resources found in 1 file - Valid: 2, Invalid: 0, Errors: 0, Skipped: 0' ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "Should support HTTPS_PROXY" {
|
||||||
|
# This only tests that the HTTPS_PROXY variable is picked up and that it tries to use it
|
||||||
|
run bash -c "HTTPS_PROXY=127.0.0.1:1234 bin/kubeconform fixtures/valid.yaml"
|
||||||
|
[ "$status" -eq 1 ]
|
||||||
|
[[ "$output" == *"proxyconnect tcp: dial tcp 127.0.0.1:1234: connect: connection refused"* ]]
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue