]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: write a full reverse regtest
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 14 Aug 2023 09:10:06 +0000 (11:10 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 15:03:08 +0000 (17:03 +0200)
commit36d936dd155df60660c283bd047b6646025b9855
tree16d6d376ab053d8bc30d9f8ceaba1d0f79359e36
parent5053e8914218de4bae733a6019f9bad9df5b12cd
REGTESTS: write a full reverse regtest

This test instantiates two haproxy instances :
* first one uses a reverse server with two bind pub and priv
* second one uses a reverse bind to initiate connection to priv endpoint

On startup, only first haproxy instance is up. A client send a request
to pub endpoint and should receive a HTTP 503 as no connection are
available on the reverse server.

Second haproxy instance is started. A delay of 3 seconds is inserted to
wait for the connection between the two LBs. Then a client retry the
request and this time should receive a HTTP 200 reusing the bootstrapped
connection.
reg-tests/connection/reverse_connect_full.vtc [new file with mode: 0644]