fix(conformance): block-style chainsaw checks (flow-map broke on contains comma)

My previous commit converted =~ to contains() but kept flow style
'check: { (contains($stdout, 'X')): true }' — the comma inside contains() is a
YAML flow-map separator, so 9 tests failed yamllint ('expected , or }'). Convert
those checks to block style (matching data-survival), where a comma in the key
scalar is fine. Gate PASS; data-survival still green.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
jakman85andClaude Opus 4.8 committed 2026-08-17 17:02:05 -05:00
1 parent 3440bbad92
commit 70c0701d6f
9 files changed
+32 -16

No files matched your search

@@ -40,7 +40,8 @@ spec:
content: |
set -euo pipefail
kubectl -n "$NAMESPACE" exec source -- nc -z -w 3 dest 80 && echo ALLOWED_OK
check: { (contains($stdout, 'ALLOWED_OK')): true }
check:
(contains($stdout, 'ALLOWED_OK')): true
- name: when-revoke-allow-then-fail-closed
try:
# FAULT INJECTION: delete the allow policy; baseline default-deny remains.
@@ -56,13 +57,15 @@ spec:
echo "LEAK: still reachable after allow revoked" >&2; exit 1
fi
echo FAIL_CLOSED_OK
check: { (contains($stdout, 'FAIL_CLOSED_OK')): true }
check:
(contains($stdout, 'FAIL_CLOSED_OK')): true
- script:
# DNS must still work (default-deny permits DNS egress).
content: |
set -euo pipefail
kubectl -n "$NAMESPACE" exec source -- nslookup kubernetes.default && echo DNS_OK
check: { (contains($stdout, 'DNS_OK')): true }
check:
(contains($stdout, 'DNS_OK')): true
finally:
- script:
content: 'echo "cleanup via chainsaw namespace teardown"'