haproxy/reg-tests/log/log_forward.vtc
Willy Tarreau 9d511b3c27 REGTESTS: enable -dW on almost all tests to fail on warnings
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.
2024-11-19 09:27:08 +01:00

58 lines
1.2 KiB
Plaintext

varnishtest "Test the TCP load-forward"
feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.3-dev1)'"
feature ignore_unknown_macro
server s1 {
rxreq
txresp
} -repeat 500 -start
syslog Slg1 -level info {
recv
expect ~ "[^:\\[ ]\\[${h1_pid}\\]: .* \"GET /client_c1 HTTP/1.1\""
} -repeat 50 -start
haproxy h1 -arg '-dW' -conf {
defaults
mode http
option httplog
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
frontend fe1
bind "fd@${fe_1}"
log 127.0.0.1:1514 local0
# log ${Slg1_addr}:${Slg1_port} local0
default_backend be
backend be
server app1 ${s1_addr}:${s1_port}
ring myring
description "My local buffer"
format rfc5424
maxlen 1200
size 32764
timeout connect 5s
timeout server 10s
# syslog tcp server
server mysyslogsrv 127.0.0.1:2514
log-forward syslog2tcp
dgram-bind 127.0.0.1:1514
log ring@myring local0 # To TCP log
log-forward syslog2local
bind 127.0.0.1:2514
log ${Slg1_addr}:${Slg1_port} local0 # To VTest syslog
} -start
client c1 -connect ${h1_fe_1_sock} {
txreq -url "/client_c1"
rxresp
expect resp.status == 200
} -repeat 50 -start
syslog Slg1 -wait