]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: Make the script testing conditional set-var compatible with Vtest2
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 May 2025 05:49:50 +0000 (07:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 May 2025 17:00:00 +0000 (19:00 +0200)
commit82c291124882d75625122e7f81b965fa2853e720
treef79154ef2a52632a831fecae818b8856ac6357fa
parent5b937b7a978597b37b8318b4fa00e8295c9f1b66
REGTESTS: Make the script testing conditional set-var compatible with Vtest2

VTest2 will replaced VTest in few months. There is not so much change
expected. One of them is that a User-Agent header is added by default in all
requests, except if an custom one is already set or if "-nouseragent" option
is used. To still be compatible with VTest, it is not possible to use the
option to avoid the header addition. So, a custom user-agent is added in the
last test of "sample_fetches/cond_set_var.vtc" to be sure it will pass with
Vtest and Vtest2. It is mandatory because the request length is tested.
reg-tests/sample_fetches/cond_set_var.vtc