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 |
| 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 | |
| 26 | client c0 -connect ${h0_fe1_sock} { |
| 27 | txreq -url "/" |
| 28 | rxresp |
| 29 | expect resp.status == 200 |
| 30 | } -run |