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:
parent
15c64ff4fb
commit
fe5463ebf2
|
@ -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.
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
varnishtest "SPOE bug: missing configuration file"
|
||||
|
||||
feature ignore_unknown_macro
|
||||
|
||||
haproxy h1 -conf-BAD {} {
|
||||
defaults
|
||||
timeout connect 5000ms
|
||||
|
|
Loading…
Reference in New Issue