]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: fix reg-tests/server/abnsz.vtc
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Feb 2025 07:16:50 +0000 (08:16 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 21 Feb 2025 07:22:25 +0000 (08:22 +0100)
It was proved in GH #2875 that the regtest was broken, at least for the
server-side abnsz, as the connect() was not performed using the proper
family, which results in kernel refusing to perform the call, while the
reg-test actually succeeds.

Indeed, in the test we used vtest client to connect to haproxy, which
then routed the request to another haproxy instance listening on an
abnsz socket, and this last haproxy was the one to answer the http
request.

As we only used "rxresp" in vtest client, the test succeeded with empty
responses, which was the case due to the server connection failing on the
first haproxy process.

reg-tests/server/abnsz.vtc

index f42933ed078605870096b372ed991103200fbad2..e1f3b1a7158d7cd6bac88b96ed1c4ff806a6a699 100644 (file)
@@ -28,6 +28,7 @@ haproxy h1 -Ws -S -conf {
 client c1 -connect ${h1_testme_sock} {
     txreq -url "/"
     rxresp
+    expect resp.status == 200
 } -run
 
 shell {