]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-rules: test the declared capture slots
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:56:00 +0000 (20:56 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commit79c3114db568d401364e3af873b2487514b4daea
tree12cb8335125cb41e5735978643023ace86f8cc72
parent5a4970a6c7ca7addaa38ecd02647ee134312e5b2
REGTESTS: http-rules: test the declared capture slots

The "declare capture" directive, the "id" form of the capture action
and the capture-req()/capture-res() converters had no coverage; only
"capture request header" and capture.req.hdr() were used elsewhere.

The test declares three request slots and two response slots in the
frontend, fills them from the frontend and from the backend, with the
action and with the converter, and reads them back with
capture.req.hdr() and capture.res.hdr(). It also checks that the
converters return their input unchanged, that an undeclared slot yields
nothing and that a slot whose input is missing stays empty.
reg-tests/http-rules/declare_capture.vtc [new file with mode: 0644]