blob: ca84c0bef963c4457e3655fdb8ade2532e09bee1 [file] [log] [blame]
Tim Duesterhus65189c12018-06-26 15:57:29 +02001# Shipped with the commit fixing the bug.
2
Frédéric Lécailledc1a3bd2019-03-29 15:07:24 +01003#REGTEST_TYPE=bug
4
Tim Duesterhus65189c12018-06-26 15:57:29 +02005varnishtest "Stick Table: Crash when accessing unknown key."
6feature ignore_unknown_macro
7
8server s0 {
9 rxreq
10 txresp
11} -start
12
13haproxy h0 -conf {
14 defaults
15 timeout connect 5000ms
16 timeout client 50000ms
17 timeout server 50000ms
18
19 frontend test
20 mode http
Christopher Faulet8f161482018-12-19 11:49:39 +010021 ${no-htx} option http-use-htx
Tim Duesterhus65189c12018-06-26 15:57:29 +020022 bind "fd@${fe1}"
23 stick-table type ip size 1m expire 1h store gpc0
24 http-request deny if { src,table_trackers(test) eq 1 }
25 http-request deny if { src,in_table(test) }
26 http-request deny deny_status 200
27} -start
28
29client c0 -connect ${h0_fe1_sock} {
30 txreq -url "/"
31 rxresp
32 expect resp.status == 200
33} -run