REGTESTS: silence the "log format ignored" warnings
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 06:46:26 +0000 (07:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 07:06:26 +0000 (08:06 +0100)
Several tests were declaring a log format without having an explicit
log server configured, causing a warning. Let's clean them up.

reg-tests/checks/tls_health_checks.vtc
reg-tests/compression/lua_validation.vtc
reg-tests/http-rules/converters_ipmask_concat_strcmp_field_word.vtc
reg-tests/http-rules/map_redirect.vtc
reg-tests/sample_fetches/acl.vtc
reg-tests/seamless-reload/abns_socket.vtc
reg-tests/server/abnsz.vtc

index 9c268f4..e94a2c7 100644 (file)
@@ -58,12 +58,10 @@ haproxy h1 -conf {
         use_backend be1
 
     frontend fe2
-        option tcplog
         bind "fd@${fe2}" ssl crt ${testdir}/common.pem
         use_backend be2
 
     frontend fe3
-        option httplog
         bind "fd@${fe3}" ssl crt ${testdir}/common.pem
         use_backend be3
 } -start
index b10cbd9..b238ce8 100644 (file)
@@ -8,13 +8,10 @@ feature ignore_unknown_macro
 
 haproxy h1 -conf {
 global
-#      log stdout format short daemon
        lua-load                ${testdir}/lua_validation.lua
 
 defaults
        mode                    http
-       log                     global
-       option                  httplog
 
 frontend main-https
        bind                    "fd@${fe1}" ssl crt ${testdir}/common.pem
index 55bcb5f..f19b7c1 100644 (file)
@@ -75,8 +75,6 @@ server s2 {
 haproxy h1 -conf {
   defaults
     mode http
-    log global
-    option httplog
     timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout client  "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout server  "${HAPROXY_TEST_TIMEOUT-5s}"
@@ -136,8 +134,6 @@ haproxy h1 -conf {
 haproxy h2 -conf {
   defaults
     mode http
-    log global
-    option httplog
     timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout client  "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout server  "${HAPROXY_TEST_TIMEOUT-5s}"
index f55e0d8..e8ed033 100644 (file)
@@ -35,7 +35,6 @@ haproxy h1 -conf {
   defaults
     mode http
     log global
-    option httplog
     timeout connect  "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout client   "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout server   "${HAPROXY_TEST_TIMEOUT-5s}"
@@ -63,7 +62,7 @@ haproxy h1 -conf {
 
     default_backend be1
 
-    backend be1
+  backend be1
     http-request redirect prefix %[var(txn.testvar)] code 301 if { var(txn.testvar) -m found }
     http-request deny
 
index 905ae3e..21e6f4b 100644 (file)
@@ -19,8 +19,6 @@ haproxy h1 -conf {
         acl ACL4 acl(ACL2,!ACL3)
 
         http-request return status 200 hdr x-acl "ACL1=%[acl(ACL1)] ACL2=%[acl(ACL2)] ACL3=%[acl(ACL3)] ACL4=%[acl(ACL4)] TRUE=%[acl(TRUE)]"
-
-        log-format ACL1=%[acl(ACL1)]
 } -start
 
 client c1 -connect ${h1_fe1_sock} {
index 4a266af..3686a1f 100644 (file)
@@ -29,8 +29,6 @@ haproxy h1 -W -S -conf {
 
   defaults
     mode http
-    log global
-    option httplog
     timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout client  "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout server  "${HAPROXY_TEST_TIMEOUT-5s}"
index 072cba9..164d172 100644 (file)
@@ -12,8 +12,6 @@ haproxy h1 -W -S -conf {
 
   defaults
     mode http
-    log global
-    option httplog
     timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout client  "${HAPROXY_TEST_TIMEOUT-5s}"
     timeout server  "${HAPROXY_TEST_TIMEOUT-5s}"