blob: 1071bc04fe42e7c4dcd779ea49a901f932fa1c04 [file] [log] [blame]
Tim Duesterhus65189c12018-06-26 15:57:29 +02001# Shipped with the commit fixing the bug.
2
3varnishtest "Stick Table: Crash when accessing unknown key."
4feature ignore_unknown_macro
5
6server s0 {
7 rxreq
8 txresp
9} -start
10
11haproxy h0 -conf {
12 defaults
13 timeout connect 5000ms
14 timeout client 50000ms
15 timeout server 50000ms
16
17 frontend test
18 mode http
19 bind "fd@${fe1}"
20 stick-table type ip size 1m expire 1h store gpc0
21 http-request deny if { src,table_trackers(test) eq 1 }
22 http-request deny if { src,in_table(test) }
23 http-request deny deny_status 200
24} -start
25
26client c0 -connect ${h0_fe1_sock} {
27 txreq -url "/"
28 rxresp
29 expect resp.status == 200
30} -run