mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 11:56:31 +00:00
Added httpoxy test
This commit is contained in:
parent
7422539f20
commit
b9bf183df2
@ -123,6 +123,17 @@ function setup {
|
|||||||
assert_output -l 'Host: web.bats'
|
assert_output -l 'Host: web.bats'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "[$TEST_FILE] nginx-proxy supresses Proxy for httpoxy protection" {
|
||||||
|
# WHEN
|
||||||
|
prepare_web_container bats-host-10 80 -e VIRTUAL_HOST=web.bats
|
||||||
|
dockergen_wait_for_event $SUT_CONTAINER start bats-host-10
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
# THEN
|
||||||
|
run curl_container $SUT_CONTAINER /headers -H "Proxy: tcp://foo.com" -H "Host: web.bats"
|
||||||
|
refute_output -l 'Proxy: tcp://foo.com'
|
||||||
|
}
|
||||||
|
|
||||||
@test "[$TEST_FILE] stop all bats containers" {
|
@test "[$TEST_FILE] stop all bats containers" {
|
||||||
stop_bats_containers
|
stop_bats_containers
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user