blob: bd8c0695068865514f5b1eebd12bd6b309324384 [file] [log] [blame]
Patrick Hemmere3faf022018-08-22 10:02:00 -04001varnishtest "Lua: txn:get_priv() scope"
Christopher Fauletfdafd9a2018-12-19 11:50:17 +01002#REQUIRE_OPTIONS=LUA
3
Patrick Hemmere3faf022018-08-22 10:02:00 -04004feature ignore_unknown_macro
5
6haproxy h1 -conf {
7 global
Frédéric Lécailleb894f922019-03-29 16:13:48 +01008 lua-load ${testdir}/h_txn_get_priv.lua
Patrick Hemmere3faf022018-08-22 10:02:00 -04009
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 Hemmere3faf022018-08-22 10:02:00 -040019 http-request use-service lua.fakeserv
20} -start
21
22client 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
31client c0 -start
32
33client c0 -wait