Fix workspace policy loading
This commit is contained in:
@@ -121,6 +121,25 @@ test("accepts the atomic schema-v3 workspace revision contract without historica
|
||||
await expect(getWorkspace("psd-clinical")).resolves.toEqual({ workspace, revision });
|
||||
});
|
||||
|
||||
test("accepts a Qdrant collection using the canonical hyphenated workspace name", async () => {
|
||||
const hyphenatedCollection = {
|
||||
...workspace,
|
||||
semantic_index: {
|
||||
...workspace.semantic_index,
|
||||
vector_store: { ...workspace.semantic_index.vector_store, collection: "psd-clinical" },
|
||||
},
|
||||
} satisfies CanonicalWorkspace;
|
||||
server.use(http.get("/api/workspaces/psd-clinical", () => HttpResponse.json({
|
||||
workspace: hyphenatedCollection,
|
||||
revision,
|
||||
})));
|
||||
|
||||
await expect(getWorkspace("psd-clinical")).resolves.toEqual({
|
||||
workspace: hyphenatedCollection,
|
||||
revision,
|
||||
});
|
||||
});
|
||||
|
||||
test("sanitizes read and validate responses while preserving directory-based Evidence", async () => {
|
||||
server.use(
|
||||
http.get("/api/workspaces/psd-clinical", () => HttpResponse.json({ workspace: evidenceWorkspace, revision })),
|
||||
|
||||
Reference in New Issue
Block a user