2018-06-26 13:57:29 +00:00
|
|
|
# Shipped with the commit fixing the bug.
|
|
|
|
|
2019-03-29 14:07:24 +00:00
|
|
|
#REGTEST_TYPE=bug
|
|
|
|
|
2018-06-26 13:57:29 +00:00
|
|
|
varnishtest "Stick Table: Crash when accessing unknown key."
|
|
|
|
feature ignore_unknown_macro
|
|
|
|
|
|
|
|
server s0 {
|
|
|
|
rxreq
|
|
|
|
txresp
|
|
|
|
} -start
|
|
|
|
|
|
|
|
haproxy h0 -conf {
|
|
|
|
defaults
|
2021-11-18 16:46:22 +00:00
|
|
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
|
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
|
|
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
2018-06-26 13:57:29 +00:00
|
|
|
|
|
|
|
frontend test
|
|
|
|
mode http
|
|
|
|
bind "fd@${fe1}"
|
|
|
|
stick-table type ip size 1m expire 1h store gpc0
|
|
|
|
http-request deny if { src,table_trackers(test) eq 1 }
|
|
|
|
http-request deny if { src,in_table(test) }
|
|
|
|
http-request deny deny_status 200
|
|
|
|
} -start
|
|
|
|
|
|
|
|
client c0 -connect ${h0_fe1_sock} {
|
|
|
|
txreq -url "/"
|
|
|
|
rxresp
|
|
|
|
expect resp.status == 200
|
|
|
|
} -run
|