mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-24 22:43:02 +00:00
9d511b3c27
Now that warnings were almost all removed, let's enable zero-warning via -dW. All tests were adjusted, but two: - mcli/mcli_start_progs.vtc: the programs section currently cannot be silenced - stats/stats-file.vtc: the warning comes from the stats file itself on comment lines. All other ones are now OK.
36 lines
848 B
Plaintext
36 lines
848 B
Plaintext
varnishtest "Abstract unix socket - zero terminated"
|
|
feature ignore_unknown_macro
|
|
feature cmd "command -v curl"
|
|
|
|
# abns@ sockets are not available on freebsd
|
|
#EXCLUDE_TARGETS=freebsd,osx,generic
|
|
#REGTEST_TYPE=devel
|
|
|
|
haproxy h1 -W -S -arg '-dW' -conf {
|
|
global
|
|
stats socket "${tmpdir}/h1/stats" level admin expose-fd listeners
|
|
|
|
defaults
|
|
mode http
|
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
|
|
listen testme
|
|
bind "fd@${testme}"
|
|
server f2 abnsz@hap-f2
|
|
|
|
frontend f2
|
|
bind abnsz@hap-f2
|
|
http-request return status 200 content-type text/plain string "ok"
|
|
} -start
|
|
|
|
client c1 -connect ${h1_testme_sock} {
|
|
txreq -url "/"
|
|
rxresp
|
|
} -run
|
|
|
|
shell {
|
|
curl -sfS --abstract-unix-socket hap-f2 "http://host/" | grep "ok"
|
|
}
|