]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: cli: don't check the HAProxy string
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 Oct 2026 13:26:49 +0000 (15:26 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 2 Oct 2026 13:26:49 +0000 (15:26 +0200)
Don't check the HAProxy string on "show info" since it can be changed
with -DPRODUCT_NAME, but check the "Name:" string instead.

reg-tests/cli/levels.vtc
reg-tests/cli/show_commands.vtc

index 1e251837ac36f716fded00bf3b3afef93ad72ddb..8db41314508b953e2d669d57cbbc035be830bc24 100644 (file)
@@ -52,7 +52,7 @@ haproxy h1 -cli {
        send "user; show stat"
        expect ~ "\n# pxname,svname,qcur"
        send "user; show info"
-       expect ~ "Name: HAProxy"
+       expect ~ "Name: .*"
 
        # changing a global setting requires admin
        send "set maxconn global 1234; show info"
index 4d6c87c43ff6e694f9e111b0c566ed5d4151be7e..a2aaf5eff8095a7d6de580ecae035665c1aa6923 100644 (file)
@@ -77,7 +77,7 @@ haproxy h1 -cli {
        expect ~ "^# pxname,svname,qcur"
 
        send "show info"
-       expect ~ "Name: HAProxy"
+       expect ~ "Name: .*"
 
        send "show schema json"
        expect ~ "json-schema.org"