REGTEST/MINOR: Missing mandatory "ignore_unknown_macro".

Since bbc34e2 varnish commit (for varnishtest), a new "cli"
macro is automatically created for each VTC script to dialog with
the CLI. Consequently, as this macro is unknown from higher level
code for varnishtest, it makes the scripts fail if we
we do not ask varnishtest to disregard the unknown macros.
To prevent this, from now on, for each VTC file for haproxy we MUST add
"feature ignore_unknown_macro" line to do so. This is mandatory
This commit is contained in:
Frdric Lcaille 2018-08-21 15:29:24 +02:00 committed by Willy Tarreau
parent 15c64ff4fb
commit fe5463ebf2
2 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,9 @@ The VTC files for haproxy must also contain a "feature ignore_unknown_macro" lin
if any macro is used for haproxy in this file. This is due to the fact that
varnishtest parser code for haproxy commands generates macros the varnishtest
parser code for varnish has no knowledge of. This line prevents varnishtest from
failing in such cases.
failing in such cases. Since bbc34e2 varnish commit, as a "cli" macro is
automatically generated, this "feature ignore_unknown_macro" is mandatory
for each VTC file for haproxy.
To make varnishtest capable of testing haproxy, two new VTC commands have been
implemented: "haproxy" and "syslog". "haproxy" is used to start haproxy processus.

View File

@ -7,6 +7,8 @@
varnishtest "SPOE bug: missing configuration file"
feature ignore_unknown_macro
haproxy h1 -conf-BAD {} {
defaults
timeout connect 5000ms