full-setup vm test: match iris and spawn exactly in the agents-status check
The jq filter used contains(), which matches substrings per element, so an agent named spawn-two satisfied spawn. It now counts the exact names iris and spawn among the fresh agents that need a login.
This commit is contained in:
parent
a2cd4f3da8
commit
04a5133c1b
1 changed files with 1 additions and 1 deletions
|
|
@ -408,7 +408,7 @@ pkgs.testers.runNixOSTest (
|
|||
settle(
|
||||
f"curl --fail --silent --unix-socket {SOCKET} {API}/api/agents/status "
|
||||
"| jq -e '[.[] | select(.hive == \"" + HIVE + "\" and .freshness == \"fresh\" and .needs_login == true)"
|
||||
" | .name] | contains([\"iris\", \"spawn\"])'",
|
||||
" | .name] | map(select(. == \"iris\" or . == \"spawn\")) | unique | length == 2'",
|
||||
2400,
|
||||
["swarm-controller", "hive-c0re"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue