Frédéric Lécaille | 54f2bcf | 2018-08-29 13:46:24 +0200 | [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 | |
Frédéric Lécaille | 54f2bcf | 2018-08-29 13:46:24 +0200 | [diff] [blame] | 4 | feature ignore_unknown_macro |
| 5 | |
| 6 | haproxy h1 -conf { |
| 7 | global |
| 8 | nbthread 3 |
| 9 | lua-load ${testdir}/b00002.lua |
| 10 | lua-load ${testdir}/b00002_print_r.lua |
| 11 | |
| 12 | frontend fe1 |
| 13 | mode http |
| 14 | bind "fd@${fe1}" |
| 15 | default_backend b1 |
| 16 | |
| 17 | frontend fe2 |
| 18 | mode http |
| 19 | bind ":8443" ssl crt ${testdir}/common.pem |
| 20 | stats enable |
| 21 | stats uri / |
| 22 | |
| 23 | backend b1 |
| 24 | mode http |
| 25 | http-request use-service lua.fakeserv |
| 26 | } -start |
| 27 | |
| 28 | client c0 -connect ${h1_fe1_sock} { |
| 29 | txreq -url "/" |
| 30 | rxresp |
| 31 | expect resp.status == 200 |
| 32 | txreq -url "/" |
| 33 | rxresp |
| 34 | expect resp.status == 200 |
| 35 | } -run |