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