REGTESTS: log: add a test for log-profile
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 6 Jun 2024 09:53:43 +0000 (11:53 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Thu, 13 Jun 2024 13:43:10 +0000 (15:43 +0200)
commitbcad26c8147cefe3ae23147551143dd648832609
tree26992fa241d4c5fdc0dc2c4c2ce8c8d712f0fe44
parent8fa4036daee77a174dee31bc5a7cbf65d4f5943b
REGTESTS: log: add a test for log-profile

Try to cover some common use-cases for "log-profile" feature. The tests
mainly focus on log-profile section declaration, and testing the behavior
of logformat / log-tag overriding capabilities.

For now, the use of log-profiles is somewhat limited because we lack
the ability to explicitly trigger the log building process at specific
steps during the stream handling. Indeed, for now we rely on
"option logasap" and proxy log-format string content "hacks" to force
the log emission at some specific steps, thus more tests should be added
over the time, when new mechanisms allowing the emission of logs at
expected processing steps will be added, or if new keywords are added to
the log-profile section.

This test requires versions >= 3.0-dev1
reg-tests/log/log_profiles.vtc [new file with mode: 0644]