Frédéric Lécaille | 54f2bcf | 2018-08-29 13:46:24 +0200 | [diff] [blame] | 1 | varnishtest "Lua: txn:get_priv() scope" |
| 2 | feature ignore_unknown_macro |
| 3 | |
| 4 | haproxy 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 | |
| 26 | client 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 |