]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: check attach-srv out of order declaration
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 2 Jan 2024 13:40:25 +0000 (14:40 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 2 Jan 2024 14:52:47 +0000 (15:52 +0100)
Previous patch fixed a regression which caused some config with
attach-srv to be rejected if the rule was declared before the target
server itself. To better detect this kind of error, mix the declaration
order in the corresponding regtest.

reg-tests/connection/reverse_connect_full.vtc

index 18536e081fb337dcbc783f1805cc703fb76fd9c7..238831fc38e4aa924a1cdc5101f7204bc6ed90e3 100644 (file)
@@ -23,12 +23,12 @@ frontend pub
        bind "fd@${pub}"
        use_backend be-reverse
 
-backend be-reverse
-       server dev rhttp@
-
 frontend priv
        bind "fd@${priv}" proto h2
        tcp-request session attach-srv be-reverse/dev
+
+backend be-reverse
+       server dev rhttp@
 } -start
 
 haproxy h_dev -conf {