]> git.kaiwu.me - haproxy.git/commit
REGTESTS: cli: add a smoke test for the read-only CLI commands
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:51:41 +0000 (20:51 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 15:19:30 +0000 (17:19 +0200)
commit09d1c04d7dbfa419a126527a20a3812948610d6a
tree8a4324d834a23fae99d21cc60087d0f46c8ba156
parentc1cf032bfb80cf1746d7527df7c48e55fa644d00
REGTESTS: cli: add a smoke test for the read-only CLI commands

Most of the "show" commands of the CLI had no coverage at all, so a
crash or a broken output in one of their dump functions would go
unnoticed. This test issues show version, cli level, cli sockets, env,
startup-logs, dev, backend, defaults, default-server, servers state,
servers conn, stat, info, schema json, sess, errors, fd, pools,
activity, threads, tasks, profiling, anon, table, map and acl once on a
small but non-empty configuration.

The patterns are deliberately loose: the point is to verify that each
command is accepted and that its dump reaches its first line, not to
freeze output formats which are explicitly allowed to change.
reg-tests/cli/show_commands.vtc [new file with mode: 0644]