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