]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: Don't try to use real nameservers for testcases
authorChristian Ruppert <idl0r@qasl.de>
Mon, 11 May 2026 17:48:23 +0000 (19:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2026 07:03:02 +0000 (09:03 +0200)
The test doesn't need a real nameserver and in a isolated, restricted
test environment it might not be able to reach one at all, like with a
network sandbox. So lets just use 127.0.0.1:53. Even if there is none,
that's not a problem for this particular test.

Signed-off-by: Christian Ruppert <idl0r@qasl.de>
reg-tests/server/cli_set_fqdn.vtc

index 72695769fabbf27f18d558ca8871cd8d6ce4c352..fae53fff0341f41458dcef431937aa8a3c9f17d3 100644 (file)
@@ -42,7 +42,7 @@ haproxy h2 -conf {
         timeout server  "${HAPROXY_TEST_TIMEOUT-5s}"
 
     resolvers systemdns
-        parse-resolv-conf
+        nameserver dns1 127.0.0.1:53
 
     frontend myfrontend
         bind "fd@${my_fe}"