test: fix addressed registry step11 regressions

This commit is contained in:
2026-08-11 23:02:09 +02:00
parent 47f3166f89
commit 792f5b7ba7
3 changed files with 87 additions and 8 deletions
+6 -3
View File
@@ -312,8 +312,11 @@ test("reports missing Evidence binding through the real test route without chang
policy: { max_chunk_chars: 4_000, retain_published_generations: 3 },
},
};
const read = vi.fn(async () => ({ workspace: evidenceWorkspace, revision }));
const registry = registryFake({ read });
const readPinned = vi.fn(async () => ({
workspace: evidenceWorkspace,
workspaceConfigPath: revision.snapshotPath,
}));
const registry = registryFake({ readPinned });
const app = appFor(registry, createProductionWorkspaceDiagnoser(100));
const variable = "THT_WS_PSD_CLINICAL_EVIDENCE_SIGNED_URLS_FILE";
const previous = process.env[variable];
@@ -330,7 +333,7 @@ test("reports missing Evidence binding through the real test route without chang
field: "evidence.source.authentication",
variable,
})]));
expect(read).toHaveBeenCalledTimes(1);
expect(readPinned).toHaveBeenCalledTimes(1);
expect(registry.publishAddressed).not.toHaveBeenCalled();
expect(revision).toMatchObject({ commit: "a".repeat(40), blob: "b".repeat(40) });
} finally {