ci: cram: verify-config-restore: accept multi-digit DNS aliases

Currently the final DNS host check after configuration restore
accepts only one digit in the generated alias. The failing
testbed-02 job reaches instance 10, restores a valid object, and
reports this Cram difference:

 -      "Alias": "cpe-X_PRPLWARE-COM_Host-\d", (re)
 +      "Alias": "cpe-X_PRPLWARE-COM_Host-10",

The comparable testbed-01 control job reaches instance 9 and passes
the same check. Both jobs successfully restore the DNS object, so
the failure depends on the allocator crossing the single-digit
boundary, not on invalid restored state.

The additional testbed-02 topology from PCF-2504 is the supported
trigger for the one-instance delta. It exposes the restrictive
expectation but does not make the restored alias invalid.

So lets fix the final alias expectation to accept one or more
digits, matching the equivalent check earlier in the test. This
keeps the test independent of the current multi-instance allocator
position.

Closes: PPW-1934
References: PCF-2504
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/15294595185
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/15300965299
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
Petr Štetiar 2026-07-14 10:03:58 +02:00
parent 554e0b40cf
commit afc3ca5586
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -207,7 +207,7 @@ Verify restored configuration after restart:
$ R "ba-cli -l -j DNS.X_PRPLWARE-COM_Host.$DnsId3.\?" | jq --sort-keys '.[0]'
{
"DNS.X_PRPLWARE-COM_Host.\d+.": { (re)
"Alias": "cpe-X_PRPLWARE-COM_Host-\d", (re)
"Alias": "cpe-X_PRPLWARE-COM_Host-\d+", (re)
"Enable": 1,
"IPAddressNumberOfEntries": 0,
"Interface": "",