ci: cram: 110-prplmesh-dataelements: assert agent count per testbed
testbed-02 grew a HomePlug-backhauled TL-WPA7817 (PCF-2504), so prplmesh_cli now reports 2 connected agents on that runner while testbed-01 still has only the DUT. Loosen the agent-count line in the operational-state block to a regex and add a separate assertion that gates the expected count on $CI_RUNNER_DESCRIPTION, matching the existing testbed-02 idiom in .gitlab/testbed.yml and .gitlab/cdrouter.yml. Fixes: PCF-2578 References: PCF-2504 Assisted-by: claude:opus-4-7:1m-context Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
This commit is contained in:
parent
fc1fb354be
commit
c5824479fc
@ -189,7 +189,7 @@ Check that prplmesh is operational:
|
||||
Mode: Agent+Controller
|
||||
Controller:
|
||||
bridge MAC: (AC:91:9B|58:E4:03):[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re)
|
||||
1 agent(s) connected
|
||||
[1-9]+ agent\(s\) connected (re)
|
||||
Agent:
|
||||
MAC address: [0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2}:[0-9A-F]{2} (re)
|
||||
management mode: Multi-AP-Controller-and-Agent
|
||||
@ -209,6 +209,13 @@ Check that prplmesh is operational:
|
||||
current state: OPERATIONAL
|
||||
best state: OPERATIONAL
|
||||
|
||||
Assert agent count matches testbed topology (testbed-01: 1, testbed-02: 2 with HomePlug-backhauled TL-WPA7817, see PCF-2504):
|
||||
|
||||
$ ACT=$(R "/opt/prplmesh/bin/prplmesh_cli -c status -o pretty" \
|
||||
> | sed -nE 's/.* ([0-9]+) agent\(s\) connected.*/\1/p')
|
||||
$ if echo "$CI_RUNNER_DESCRIPTION" | grep -q testbed-02; then EXP=2; else EXP=1; fi
|
||||
$ test "$ACT" = "$EXP" || echo "agent count mismatch: actual=$ACT expected=$EXP"
|
||||
|
||||
Check that controller received correct info about wifi subsystem:
|
||||
|
||||
$ R logger -t cram "Check controller info about network"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user