diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:35:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:35:11 +0000 |
commit | da76459dc21b5af2449af2d36eb95226cb186ce2 (patch) | |
tree | 542ebb3c1e796fac2742495b8437331727bbbfa0 /tests/conf/test-sample-fetch-conv.cfg | |
parent | Initial commit. (diff) | |
download | haproxy-da76459dc21b5af2449af2d36eb95226cb186ce2.tar.xz haproxy-da76459dc21b5af2449af2d36eb95226cb186ce2.zip |
Adding upstream version 2.6.12.upstream/2.6.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/conf/test-sample-fetch-conv.cfg')
-rw-r--r-- | tests/conf/test-sample-fetch-conv.cfg | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/conf/test-sample-fetch-conv.cfg b/tests/conf/test-sample-fetch-conv.cfg new file mode 100644 index 0000000..50eda5d --- /dev/null +++ b/tests/conf/test-sample-fetch-conv.cfg @@ -0,0 +1,42 @@ +# 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] + |