blob: 58851939d17c4b129ffa9d86a602ab7e00d12df2 [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
Christopher Faulet8f161482018-12-19 11:49:39 +010019 ${no-htx} option http-use-htx
Tim Duesterhus65189c12018-06-26 15:57:29 +020020 bind "fd@${fe1}"
21 stick-table type ip size 1m expire 1h store gpc0
22 http-request deny if { src,table_trackers(test) eq 1 }
23 http-request deny if { src,in_table(test) }
24 http-request deny deny_status 200
25} -start
26
27client c0 -connect ${h0_fe1_sock} {
28 txreq -url "/"
29 rxresp
30 expect resp.status == 200
31} -run