blob: 50eda5d0de4b9a1c126605b1c946e29af0173576 [file] [log] [blame]
Willy Tarreau1d7ca2e2013-12-13 01:32:09 +01001# This config file aims to trigger all error detection cases in the sample
2# fetch expression parser related to the sample converters.
3
4# silence some warnings
5defaults
6 mode http
7 timeout client 1s
8 timeout server 1s
9 timeout connect 1s
10
11frontend 1
12 bind :10000
13
14 # report "missing comma after fetch keyword %s"
15 http-request add-header name %[hdr(arg))]
16
17 # report "missing comma after conv keyword %s"
18 http-request add-header name %[hdr(arg),ipmask(2))]
19
20 # report "unknown conv method '%s'"
21 http-request add-header name %[hdr(arg),blah]
22
23 # report "syntax error: missing ')' after conv keyword '%s'"
24 http-request add-header name %[hdr(arg),ipmask(2]
25
26 # no way to report "returns type of conv method '%s' is unknown"
27
28 # "conv method '%s' cannot be applied"
29 http-request add-header name %[wait_end,ipmask(2)]
30
31 # "conv method '%s' does not support any args"
32 http-request add-header name %[hdr(arg),upper()]
33
34 # "invalid arg %d in conv method '%s' : %s"
35 http-request add-header name %[hdr(arg),ipmask(a)]
36
37 # "invalid args in conv method '%s' : %s"
38 http-request add-header name %[hdr(arg),map()]
39
40 # "missing args for conv method '%s'"
41 http-request add-header name %[hdr(arg),ipmask]
42