mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-30 08:32:05 +00:00
d4359fd98b
These are a collection of test files for a variety of features (old or more recent). 2 or 3 files were found lying there non-committed and were moved at the same time. A few deprecated or obsolete keywords were updated to their recent equivalent. Many of these configurations are made to trigger different parsing errors so it is normal that plenty of them fail. Now the tests directory is cleaner and easier to navigate through.
43 lines
1.2 KiB
INI
43 lines
1.2 KiB
INI
# This config file aims to trigger all error detection cases in the sample
|
|
# fetch expression parser related to the sample converters.
|
|
|
|
# silence some warnings
|
|
defaults
|
|
mode http
|
|
timeout client 1s
|
|
timeout server 1s
|
|
timeout connect 1s
|
|
|
|
frontend 1
|
|
bind :10000
|
|
|
|
# report "missing comma after fetch keyword %s"
|
|
http-request add-header name %[hdr(arg))]
|
|
|
|
# report "missing comma after conv keyword %s"
|
|
http-request add-header name %[hdr(arg),ipmask(2))]
|
|
|
|
# report "unknown conv method '%s'"
|
|
http-request add-header name %[hdr(arg),blah]
|
|
|
|
# report "syntax error: missing ')' after conv keyword '%s'"
|
|
http-request add-header name %[hdr(arg),ipmask(2]
|
|
|
|
# no way to report "returns type of conv method '%s' is unknown"
|
|
|
|
# "conv method '%s' cannot be applied"
|
|
http-request add-header name %[wait_end,ipmask(2)]
|
|
|
|
# "conv method '%s' does not support any args"
|
|
http-request add-header name %[hdr(arg),upper()]
|
|
|
|
# "invalid arg %d in conv method '%s' : %s"
|
|
http-request add-header name %[hdr(arg),ipmask(a)]
|
|
|
|
# "invalid args in conv method '%s' : %s"
|
|
http-request add-header name %[hdr(arg),map()]
|
|
|
|
# "missing args for conv method '%s'"
|
|
http-request add-header name %[hdr(arg),ipmask]
|
|
|