Jerome Magnin | 28b9033 | 2020-03-27 22:08:40 +0100 | [diff] [blame] | 1 | varnishtest "so_name sample fetche Test" |
2 | |||||
3 | #REQUIRE_VERSION=2.2 | ||||
4 | |||||
5 | feature ignore_unknown_macro | ||||
6 | |||||
7 | haproxy h1 -conf { | ||||
8 | defaults | ||||
9 | mode http | ||||
10 | |||||
11 | frontend fe | ||||
12 | bind "fd@${fe}" name foo | ||||
13 | http-request return status 200 hdr so-name %[so_name] | ||||
14 | |||||
15 | } -start | ||||
16 | |||||
17 | client c1 -connect ${h1_fe_sock} { | ||||
18 | txreq -url "/" | ||||
19 | rxresp | ||||
20 | expect resp.status == 200 | ||||
21 | expect resp.http.so-name == "foo" | ||||
22 | } -run |