From aff917fa0b6606e92fdcd3a40b0b9f3329be312f Mon Sep 17 00:00:00 2001 From: Vivswan Shah <58091053+Vivswan@users.noreply.github.com> Date: Mon, 21 Sep 2026 19:54:11 -0400 Subject: [PATCH] test(secret_scanning_custom_patterns): drop the read-port case the contract tests already pin The read-port shape case restates the endpoint table at runtime; the canonical read-port case in the contract tests pins the port's derivation for every section. The convergence case stays: a mutant that skips start_delimiter in the update filter reddens only it, so the stored delimiter has no other pin. The verbatim snapshot table stays: a mutant that appends a note for every translated pattern reddens only its three PCRE rows, so the empty detail has no other pin. The duplicate-name validate case stays: its message assertion is the only pin of the section's resource name in the duplicate issue. Test-only; no source changes. --- .../secret_scanning_custom_patterns.test.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/sections/secret_scanning_custom_patterns/secret_scanning_custom_patterns.test.ts b/src/sections/secret_scanning_custom_patterns/secret_scanning_custom_patterns.test.ts index f51df521..bb4d9bcf 100644 --- a/src/sections/secret_scanning_custom_patterns/secret_scanning_custom_patterns.test.ts +++ b/src/sections/secret_scanning_custom_patterns/secret_scanning_custom_patterns.test.ts @@ -344,19 +344,6 @@ describe("secret_scanning_custom_patterns", () => { ["vendor-key", "key-[0-9]{6}", undefined], ]); }); - - test("the read port exposes exactly the list role in its denied posture", () => { - const ctx = planContext(secretScanningPatternsSection, new MockApi({}), REPO); - expect(Object.keys(ctx.read)).toEqual(["list"]); - // @ts-expect-error a write role is not a read: the port has no `create` - ctx.read.create; - // @ts-expect-error nor an `update` - ctx.read.update; - // @ts-expect-error nor a `remove` - ctx.read.remove; - // @ts-expect-error a "denied" primary read offers no 404-tolerant helper - ctx.read.list.probeAbsent; - }); }); describe("secret_scanning_custom_patterns snapshot", () => {