REGTEST: add a test for log-backend used as a log target
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 26 Sep 2023 14:31:21 +0000 (16:31 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Oct 2023 08:05:06 +0000 (10:05 +0200)
commit7e70b8858f6d26365e9604f7ffe80ee5024bce96
tree538586d600c9af902e909b97d362ecf980a6191f
parentb30bd7adba321efa2534cab418069ce0b0cc284f
REGTEST: add a test for log-backend used as a log target

This regtest declares and uses 3 log backends, one of which has TCP syslog
servers declared in it and other ones UDP syslog servers.

Some tests aims at testing log distribution reliability by leveraging the
log-balance hash algorithm with a key extracted from the request URL, and
the dummy vtest syslog servers ensure that messages are sent to the
correct endpoint. Overall this regtest covers essential parts of the log
message distribution and log-balancing logic involved with log backends.

It also leverages the log-forward section to perform the TCP->UDP
translation required to test UDP endpoints since vtest syslog servers
work in UDP mode.

Finally, we have some tests to ensure that the server queuing/dequeuing
and failover (backup) logics work properly.
reg-tests/log/log_backend.vtc [new file with mode: 0644]