]> git.kaiwu.me - haproxy.git/commit
REGTESTS: log: check that the +cbor output passes the logged bytes through
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Sep 2026 16:58:17 +0000 (18:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Sep 2026 06:34:12 +0000 (08:34 +0200)
commitabf23a95f008aeab2531e6804d068ceb6c5314a2
tree9aa21505dd868d10ce58eee6fa83c7d0969bfabb
parentbcb60500af251bc739852e5a1a249955c8c25855
REGTESTS: log: check that the +cbor output passes the logged bytes through

The encoding described in section 8.6 deliberately does not apply to the
cbor encoding, whose default output form is already made of hex digits and
whose "+bin" form emits delimited binary blocks. Nothing checked that so
far, so a well-intentioned change could reintroduce an encoding there
without anyone noticing.

Check that a byte outside the printable range, a UTF-8 sequence and a '#'
all reach the CBOR text string untouched, that a binary sample goes to a
byte string with its byte preserved, and that the "+bin" form leaves the
value alone as well.
reg-tests/log/log_cbor.vtc [new file with mode: 0644]