openova/platform/cnpg-pair
e3mrah 60e04a3e29
fix(cnpg-pair tests): exclude helm-test hook resources from non-test count (#1225)
The chart 0.1.1 added templates/tests/test-replication.yaml (helm-test
Pod + ServiceAccount + Role + RoleBinding) which `helm template` renders
unconditionally. The render-gate test was counting those into
EXPECTED=7 producing GOT=11 in CI. Two fixes:

- Switch to a python+yaml split that counts non-test resources (annotation
  helm.sh/hook absent) and helm-test resources separately. Both are
  asserted against fixed counts so a future regression that drops the
  test Pod or grows the non-test set would still fail.
- Case 5 false-positive: the helm-test Pod's command body contains
  the literal string "service.cilium.io/global=true" as part of an
  assertion error message; strip helm-test docs out before the comment-
  stripped grep.

Verified locally: all 5 cases PASS.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 23:51:08 +04:00
..
chart fix(cnpg-pair tests): exclude helm-test hook resources from non-test count (#1225) 2026-05-09 23:51:08 +04:00
blueprint.yaml fix(cnpg-pair, cilium): qa-loop iter-6 Phase-2 multi-region closeout (#1101) (#1223) 2026-05-09 23:36:17 +04:00
DESIGN.md feat(cnpg-pair): C-DB-1 — bp-cnpg-pair Blueprint (active-hotstandby CNPG cluster-pair across regions) (#1101) (#1153) 2026-05-09 05:16:55 +04:00