File: unknown_key.vtc

package info (click to toggle)
haproxy 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 24,612 kB
  • sloc: ansic: 275,408; sh: 3,607; xml: 1,756; python: 1,345; makefile: 1,162; perl: 168; cpp: 21
file content (37 lines) | stat: -rw-r--r-- 772 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Shipped with the commit fixing the bug.

#REGTEST_TYPE=bug

varnishtest "Stick Table: Crash when accessing unknown key."
feature ignore_unknown_macro

server s0 {
	rxreq
	txresp
} -start

haproxy h0 -conf {
    global
    .if feature(THREAD)
        thread-groups 1
    .endif

	defaults
		timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
		timeout client  "${HAPROXY_TEST_TIMEOUT-5s}"
		timeout server  "${HAPROXY_TEST_TIMEOUT-5s}"

	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