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:
1 parent
3440bbad92
commit
70c0701d6f
9 files changed
+32
-16
No files matched your search
@@ -48,7 +48,8 @@ spec:
|
||||
set -euo pipefail
|
||||
echo "TODO: query smtp-sink for an email whose subject matches the alert"
|
||||
echo "EMAIL_DELIVERED_OK"
|
||||
check: { (contains($stdout, 'EMAIL_DELIVERED_OK')): true }
|
||||
check:
|
||||
(contains($stdout, 'EMAIL_DELIVERED_OK')): true
|
||||
finally:
|
||||
- script:
|
||||
content: 'echo "TODO: clear the injected fault + drain the sink (self-cleaning)"'
|
||||
@@ -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"'
|
||||
@@ -46,7 +46,8 @@ spec:
|
||||
set -euo pipefail
|
||||
echo "TODO: assert app Ready in restored ns AND canary data present"
|
||||
echo "DR_RESTORE_OK"
|
||||
check: { (contains($stdout, 'DR_RESTORE_OK')): true }
|
||||
check:
|
||||
(contains($stdout, 'DR_RESTORE_OK')): true
|
||||
finally:
|
||||
- script:
|
||||
content: 'echo "TODO: delete the restore target namespace (self-cleaning)"'
|
||||
@@ -45,7 +45,8 @@ spec:
|
||||
set -euo pipefail
|
||||
echo "TODO: within Flux interval, assert live value == git-declared value"
|
||||
echo "DRIFT_REVERTED_OK"
|
||||
check: { (contains($stdout, 'DRIFT_REVERTED_OK')): true }
|
||||
check:
|
||||
(contains($stdout, 'DRIFT_REVERTED_OK')): true
|
||||
finally:
|
||||
- script:
|
||||
content: 'echo "TODO: ensure resource left in git-declared state"'
|
||||
@@ -56,7 +56,8 @@ spec:
|
||||
echo "TODO: assert rolled back to last-good revision"
|
||||
echo "TODO: assert Alertmanager delivered an email alert (see alerting test)"
|
||||
echo "ROLLBACK_OK"
|
||||
check: { (contains($stdout, 'ROLLBACK_OK')): true }
|
||||
check:
|
||||
(contains($stdout, 'ROLLBACK_OK')): true
|
||||
finally:
|
||||
- script:
|
||||
content: 'echo "TODO: reset automation to a good tag (self-cleaning)"'
|
||||
|
||||
@@ -51,14 +51,16 @@ spec:
|
||||
echo "LEAK: vpn workload reached internet with tunnel down" >&2; exit 1
|
||||
fi
|
||||
echo NO_LEAK_OK
|
||||
check: { (contains($stdout, 'NO_LEAK_OK')): true }
|
||||
check:
|
||||
(contains($stdout, 'NO_LEAK_OK')): true
|
||||
- script:
|
||||
# AND: internet-class workload is unaffected.
|
||||
content: |
|
||||
set -euo pipefail
|
||||
kubectl -n "$NAMESPACE" exec egress-internet -- \
|
||||
curl -fsS --max-time 5 https://api.ipify.org && echo INTERNET_UNAFFECTED_OK
|
||||
check: { (contains($stdout, 'INTERNET_UNAFFECTED_OK')): true }
|
||||
check:
|
||||
(contains($stdout, 'INTERNET_UNAFFECTED_OK')): true
|
||||
- name: when-tunnel-recovers-connectivity-returns
|
||||
try:
|
||||
- script:
|
||||
|
||||
Reference in new issue
Block a user