Skip to content

test(control-plane): per-field CP-02 regressions + README count fix - #110

Merged
EslaM-X merged 1 commit into
mainfrom
fix/cp-02-per-field-tests
Nov 23, 2026
Merged

EslaM-X merged 1 commit into
mainfrom
fix/cp-02-per-field-tests

Conversation

@EslaM-X

@EslaM-X EslaM-X commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

CP-01, CP-02 and CP-03 are already fixed on main (#103, refined by #104/#105). This PR closes the one gap left in the request: CP-02 had a single combined test for merchant, address and currency, so a regression in one field could hide behind the other two.

Adds three focused tests, one per field, each asserting the named refusal (MERCHANT_MISSING, ADDRESS_MISSING, CURRENCY_MISSING) against a policy that pins only that field, then a commit that supplies it and succeeds. AMOUNT_REQUIRED (CP-01) and the expiry behaviour (CP-03) already have their own tests; the control-plane file is now 22/22.

Also fixes a pre-existing red on main: the daily content sync left README.md:295 at "1724/1724 tests" while the snapshot pins 1972, so doc-numbers failed on b0b3fb2. The line now matches the snapshot.

Checks: control-plane suite 22/22; doc-numbers + status-truth 14/14. The full npm test cannot run in this environment (workspace packages such as @coreguard/canonical are not installed), so the suite total was not re-measured; it stays at the CI-measured 1972 and will need a refresh on the next full run.

…1989

CP-01/02/03 are fixed on main, but CP-02 had one combined regression for
merchant, address and currency, so a regression in one field could hide
behind the other two. Add one focused test per field.

Those three tests move the CI-measured suite from 1986 to 1989, so the
snapshot and every live doc claim are derived to the new total.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@EslaM-X
EslaM-X force-pushed the fix/cp-02-per-field-tests branch from a2e7584 to c32e1fe Compare November 23, 2026 14:48
@EslaM-X
EslaM-X merged commit 52351c9 into main Nov 23, 2026
9 checks passed
@EslaM-X EslaM-X added documentation Improvements or additions to documentation security Security-relevant change (secrets, signing, or execution safety) infrastructure CI, tooling, freeze records, boundary audit ci-cd CI/CD, release, and automation hardening agent-commerce Agent Commerce Security product family (AC-SDK/1 · CGCR/1 · AC-FW/1 · AGR/1 · CGXA/1) release Release, packaging, publishing, and versioning testing Tests, regressions, and verification coverage labels Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-commerce Agent Commerce Security product family (AC-SDK/1 · CGCR/1 · AC-FW/1 · AGR/1 · CGXA/1) ci-cd CI/CD, release, and automation hardening documentation Improvements or additions to documentation infrastructure CI, tooling, freeze records, boundary audit release Release, packaging, publishing, and versioning security Security-relevant change (secrets, signing, or execution safety) testing Tests, regressions, and verification coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant