test: fix addressed registry step11 regressions
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user