]> git.kaiwu.me - haproxy.git/commit
REGTESTS: mcli: check the master and worker unique identifiers
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 12:09:04 +0000 (14:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2026 16:00:51 +0000 (18:00 +0200)
commitfc0e50f42d275e00dd8349b24f4baed69ee15783
tree61e3dc3097392bc88b411c2650e189f891baeb74
parent04ab50253cd884831199036290be076edeaf78f2
REGTESTS: mcli: check the master and worker unique identifiers

The test forces the worker's ID from the configuration so that it can be
matched exactly, both from the "worker_id" sample fetch function, from
$HAPROXY_WORKER_ID and from "show info", while the master's one, which is
generated, is matched against the UUID version 7 format, in the master's
environment, in "show info" and through the "master_id" sample fetch
function.

A second instance runs without a master and lets its worker ID be
generated, which permits to check that "master_id" then finds nothing and
that the generated identifier matches its exported copy.

Both instances also verify what "stats show-node" reports on the HTML
page, with and without a master.
reg-tests/mcli/mcli_proc_ids.vtc [new file with mode: 0644]