From: Amaury Denoyelle Date: Thu, 6 Aug 2026 15:18:08 +0000 (+0200) Subject: REGTESTS: proxy: complete "del backend" test X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=a4829b1f225d64dba3bbd71542bc4cdcf7f07457;p=thirdparty%2Fhaproxy.git REGTESTS: proxy: complete "del backend" test A recent fix was introduced for "del backend" on 3.4 when deleting the first proxy declared in the configuration. This issue does not affect the current development tree. To ensure this case is safe, complete backend deletion reg-test with a deletion on the first declared proxy. This could prevent any future regression for this particular case. This should be backported up to 3.4. --- diff --git a/reg-tests/proxy/cli_del_backend.vtc b/reg-tests/proxy/cli_del_backend.vtc index bcbc1a4c1..d256b91dd 100644 --- a/reg-tests/proxy/cli_del_backend.vtc +++ b/reg-tests/proxy/cli_del_backend.vtc @@ -14,6 +14,8 @@ haproxy h1 -conf { timeout client "${HAPROXY_TEST_TIMEOUT-5s}" timeout server "${HAPROXY_TEST_TIMEOUT-5s}" + backend be_first + frontend fe bind "fd@${feS}" use_backend be_ref @@ -67,6 +69,10 @@ haproxy h1 -cli { send "show stat be 2 -1" expect !~ "be,BACKEND," + + # ensures freeing the first declared proxy is safe + send "unpublish backend be_first; del backend be_first" + expect ~ "Backend deleted." } haproxy h1 -cli {