blob: 980443c01e71f27b426859851de89fa76309506f [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
Tim Duesterhus65189c12018-06-26 15:57:29 +020021 bind "fd@${fe1}"
22 stick-table type ip size 1m expire 1h store gpc0
23 http-request deny if { src,table_trackers(test) eq 1 }
24 http-request deny if { src,in_table(test) }
25 http-request deny deny_status 200
26} -start
27
28client c0 -connect ${h0_fe1_sock} {
29 txreq -url "/"
30 rxresp
31 expect resp.status == 200
32} -run