mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-21 20:00:17 +00:00
23 lines
407 B
Plaintext
23 lines
407 B
Plaintext
|
varnishtest "so_name sample fetche Test"
|
||
|
|
||
|
#REQUIRE_VERSION=2.2
|
||
|
|
||
|
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
|