Because of the commit
5cb8d7b8f ("BUG/MINOR: peers: Improve detection of
config errors in peers sections"), 2 scripts now report errors during
startup because some variables are not set and the remote peer server is
thus malformed. To perform a peer synchro between 2 haproxys in these
scripts, the startup must be delayed to properly resolve addresses.
In addidiotn, we must wait (2s) to be sure the connection between peers is
properly established. These scripts are now flagged as slow.
vtest "A reg test for stickiness"
feature ignore_unknown_macro
-
+#REGTEST_TYPE=slow
# The aim of this test is to check that "stick on" rules
# do the job they are supposed to do.
use_backend be1 if acl_be1
use_backend be2 if acl_be2
bind "fd@${fe}"
-} -start
+}
# h2/be1 servers
server s5 {
use_backend be1 if acl_be1
use_backend be2 if acl_be2
bind "fd@${fe}"
-} -start
+}
+haproxy h1 -start
delay 0.2
+haproxy h2 -start
+delay 2
client cx -connect ${h1_fe_sock} {
txreq -url "/be1?client=c1"
vtest "A reg test for stickiness with srvkey addr"
feature ignore_unknown_macro
-
+#REGTEST_TYPE=slow
# The aim of this test is to check that "stick on" rules
# do the job they are supposed to do.
use_backend be1 if acl_be1
use_backend be2 if acl_be2
bind "fd@${fe}"
-} -start
+}
haproxy h2 -arg "-L B" -conf {
defaults
use_backend be1 if acl_be1
use_backend be2 if acl_be2
bind "fd@${fe}"
-} -start
+}
+haproxy h1 -start
delay 0.2
+haproxy h2 -start
+delay 2
client cx -connect ${h1_fe_sock} {
txreq -url "/be1?client=c1"