From a4829b1f225d64dba3bbd71542bc4cdcf7f07457 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Thu, 6 Aug 2026 17:18:08 +0200 Subject: [PATCH] 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. --- reg-tests/proxy/cli_del_backend.vtc | 6 ++++++ 1 file changed, 6 insertions(+) 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 { -- 2.47.3