test(cd): align six-host known-hosts gate
Some checks failed
CD Pipeline / select-latest-carrier (push) Successful in 1m11s
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m16s
CD Pipeline / revalidate-deploy-carrier (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / revalidate-post-deploy-carrier (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-07-22 19:29:45 +08:00
parent cfcaa1245e
commit 4d7ab29b1b

View File

@@ -11,7 +11,7 @@ def test_cd_known_hosts_gate_retries_and_verifies_preserved_secret() -> None:
assert "for scan_attempt in 1 2 3" in gate
assert 'sleep "\\$scan_attempt"' in gate
assert "existing ssh-mcp-key verified 5/5 and preserved" in gate
assert "existing ssh-mcp-key verified 6/6 and preserved" in gate
assert "EXISTING_PRESENT=\\$((EXISTING_PRESENT + 1))" in gate
assert 'if [ "\\$EXISTING_PRESENT" -eq "\\$EXPECTED_HOSTS" ]' in gate
assert 'rm -f "\\$EXISTING_KNOWN_HOSTS"' in gate