summaryrefslogtreecommitdiffstats
path: root/reg-tests/sample_fetches/so_name.vtc
blob: c6211fa54dbb9e94f81b33e602cad11f1fd2e670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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