Tim Duesterhus | 65189c1 | 2018-06-26 15:57:29 +0200 | [diff] [blame] | 1 | # Shipped with the commit fixing the bug. |
| 2 | |
| 3 | varnishtest "Stick Table: Crash when accessing unknown key." |
| 4 | feature ignore_unknown_macro |
| 5 | |
| 6 | server s0 { |
| 7 | rxreq |
| 8 | txresp |
| 9 | } -start |
| 10 | |
| 11 | haproxy h0 -conf { |
| 12 | defaults |
| 13 | timeout connect 5000ms |
| 14 | timeout client 50000ms |
| 15 | timeout server 50000ms |
| 16 | |
| 17 | frontend test |
| 18 | mode http |
Christopher Faulet | 8f16148 | 2018-12-19 11:49:39 +0100 | [diff] [blame] | 19 | ${no-htx} option http-use-htx |
Tim Duesterhus | 65189c1 | 2018-06-26 15:57:29 +0200 | [diff] [blame] | 20 | 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 | |
| 27 | client c0 -connect ${h0_fe1_sock} { |
| 28 | txreq -url "/" |
| 29 | rxresp |
| 30 | expect resp.status == 200 |
| 31 | } -run |