blob: 6cb626e261d21808961af64b77a13ae63890c576 [file] [log] [blame]
Frédéric Lécaille54f2bcf2018-08-29 13:46:24 +02001varnishtest "Lua: txn:get_priv() scope"
2feature ignore_unknown_macro
3
4haproxy h1 -conf {
5 global
6 nbthread 3
7 lua-load ${testdir}/b00002.lua
8 lua-load ${testdir}/b00002_print_r.lua
9
10 frontend fe1
11 mode http
12 bind "fd@${fe1}"
13 default_backend b1
14
15 frontend fe2
16 mode http
17 bind ":8443" ssl crt ${testdir}/common.pem
18 stats enable
19 stats uri /
20
21 backend b1
22 mode http
23 http-request use-service lua.fakeserv
24} -start
25
26client c0 -connect ${h1_fe1_sock} {
27 txreq -url "/"
28 rxresp
29 expect resp.status == 200
30 txreq -url "/"
31 rxresp
32 expect resp.status == 200
33} -run