Recipe test: drop the exemption that exempted nothing, fail on a stale never-bound entry
Soul's pass on PR #17 showed idunnOwned names are already declared, so the set could only hide a later gap; and a never-bound name nothing reads went unnoticed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2f0dd0c3a7
commit
4a0fb44b5b
1 changed files with 3 additions and 6 deletions
|
|
@ -229,11 +229,6 @@ describe("Idunn recipe secret declarations", () => {
|
|||
it("declares every other name loadConfig reads, or says why a binding never sets it", () => {
|
||||
// Idunn refuses a binding that sets an undeclared name, so an undeclared
|
||||
// name is a setting no Idunn-admitted generation can ever change.
|
||||
const idunnOwned = new Set([
|
||||
"GAMECULT_IDUNN_RUNTIME_BUNDLE",
|
||||
"GAMECULT_IDUNN_CANDIDATE_BIND",
|
||||
"GAMECULT_IDUNN_PROCESS_WRITE_LEASE",
|
||||
]);
|
||||
const neverBound = new Set([
|
||||
// The listen socket is the candidate bind under Idunn, and the command port follows it.
|
||||
"HOST",
|
||||
|
|
@ -248,7 +243,9 @@ describe("Idunn recipe secret declarations", () => {
|
|||
const declared = new Set(everyDeclaredName);
|
||||
const unreachable = [...explored.names]
|
||||
.filter((name) => !secretNames.includes(name) && !name.endsWith("_FILE"))
|
||||
.filter((name) => !declared.has(name) && !idunnOwned.has(name) && !neverBound.has(name));
|
||||
.filter((name) => !declared.has(name) && !neverBound.has(name));
|
||||
expect(unreachable).toEqual([]);
|
||||
// An exemption for a name nothing reads would hide the next real gap.
|
||||
expect([...neverBound].filter((name) => !explored.names.has(name))).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue