Patrick Hemmer | e3faf02 | 2018-08-22 10:02:00 -0400 | [diff] [blame] | 1 | varnishtest "Lua: txn:get_priv() scope" |
| 2 | feature ignore_unknown_macro |
| 3 | |
| 4 | haproxy h1 -conf { |
| 5 | global |
| 6 | lua-load ${testdir}/h00001.lua |
| 7 | |
| 8 | frontend fe1 |
| 9 | mode http |
| 10 | bind "fd@${fe1}" |
| 11 | default_backend b1 |
| 12 | |
| 13 | http-response lua.bug |
| 14 | |
| 15 | backend b1 |
| 16 | mode http |
| 17 | http-request use-service lua.fakeserv |
| 18 | } -start |
| 19 | |
| 20 | client c0 -connect ${h1_fe1_sock} { |
| 21 | txreq -url "/" |
| 22 | rxresp |
| 23 | expect resp.status == 201 |
| 24 | txreq -url "/" |
| 25 | rxresp |
| 26 | expect resp.status == 201 |
| 27 | } |
| 28 | |
| 29 | client c0 -start |
| 30 | |
| 31 | client c0 -wait |