haproxy/reg-tests/sample_fetches/so_name.vtc
Tim Duesterhus e349159a34 REGTESTS: Remove REQUIRE_VERSION=2.2 from all tests
HAProxy 2.2 is the lowest supported version, thus this always matches.

see 7aff1bf6b9
2024-05-29 22:36:15 +02:00

21 lines
385 B
Plaintext

varnishtest "so_name sample fetche Test"
feature ignore_unknown_macro
haproxy h1 -conf {
defaults
mode http
frontend fe
bind "fd@${fe}" name foo
http-request return status 200 hdr so-name %[so_name]
} -start
client c1 -connect ${h1_fe_sock} {
txreq -url "/"
rxresp
expect resp.status == 200
expect resp.http.so-name == "foo"
} -run