blob: f0307cb210075e880944713647c34d8c5c4bd60c [file] [log] [blame]
Tim Duesterhus65189c12018-06-26 15:57:29 +02001# Shipped with the commit fixing the bug.
2
Frédéric Lécailledc1a3bd2019-03-29 15:07:24 +01003#REGTEST_TYPE=bug
4
Tim Duesterhus65189c12018-06-26 15:57:29 +02005varnishtest "Stick Table: Crash when accessing unknown key."
6feature ignore_unknown_macro
7
8server s0 {
9 rxreq
10 txresp
11} -start
12
13haproxy h0 -conf {
14 defaults
Willy Tarreauf6739232021-11-18 17:46:22 +010015 timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
16 timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
17 timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
Tim Duesterhus65189c12018-06-26 15:57:29 +020018
19 frontend test
20 mode http
Tim Duesterhus65189c12018-06-26 15:57:29 +020021 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
28client c0 -connect ${h0_fe1_sock} {
29 txreq -url "/"
30 rxresp
31 expect resp.status == 200
32} -run