REGTESTS: Fix some scripts to be compatible with 2.4 and prior
"feature cmd" is not supported on older versions. In addition, the
HAPROXY_TEST_TIMEOUT variable cannot be used to customize timeout values in
haproxy configurations.
This commit is specific to 2.4. There is no upstream ID.
diff --git a/reg-tests/http-rules/restrict_req_hdr_names.vtc b/reg-tests/http-rules/restrict_req_hdr_names.vtc
index 071b9bd..57bc7e1 100644
--- a/reg-tests/http-rules/restrict_req_hdr_names.vtc
+++ b/reg-tests/http-rules/restrict_req_hdr_names.vtc
@@ -1,5 +1,5 @@
varnishtest "http-restrict-req-hdr-names option tests"
-feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.0-dev0)'"
+#REQUIRE_VERSION=2.0
# This config tests "http-restrict-req-hdr-names" option
@@ -38,9 +38,9 @@
haproxy h1 -conf {
defaults
mode http
- timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
- timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
- timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
+ timeout connect 1s
+ timeout client 1s
+ timeout server 1s
frontend fe1
bind "fd@${fe1}"
@@ -74,9 +74,9 @@
defaults
mode http
- timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
- timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
- timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
+ timeout connect 1s
+ timeout client 1s
+ timeout server 1s
option http-restrict-req-hdr-names preserve
frontend fe2