From: Amaury Denoyelle Date: Wed, 5 Aug 2026 08:37:59 +0000 (+0200) Subject: MINOR: proxy: complete "add backend" reg-test X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f5b78d892f08864f1f5c37809eefa7c464e7350;p=thirdparty%2Fhaproxy.git MINOR: proxy: complete "add backend" reg-test Add new tests for "add backend" command, most notably a check on "mode" argument in case defaults section does not define an explicit mode. --- diff --git a/reg-tests/proxy/cli_add_backend.vtc b/reg-tests/proxy/cli_add_backend.vtc index c1d049590..8bc8b3754 100644 --- a/reg-tests/proxy/cli_add_backend.vtc +++ b/reg-tests/proxy/cli_add_backend.vtc @@ -49,9 +49,15 @@ client c1 -connect ${h1_feS_sock} { } -run haproxy h1 -cli { - # non existent backend - send "add backend be from def" + # non existent defaults + send "add backend be from unknown" + expect ~ "Cannot find default proxy 'unknown'." + + # defaults instance without mode set + send "add backend be2 from def" expect ~ "Mode is required" + send "add backend be2 from def mode http" + expect ~ "New backend registered." send "add backend be from def_http" expect ~ "New backend registered."