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