test: verify read-only workspace secret flow

This commit is contained in:
2026-08-14 18:05:28 +02:00
parent ab33e0ed0a
commit bd42aa5934
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -34,9 +34,9 @@ test("loadConfig keeps local development defaults", () => {
workspaceRegistry: { workspaceRegistry: {
root: "/data/workspace-registry", root: "/data/workspace-registry",
branch: "main", branch: "main",
maxImportBytes: 10 * 1024 * 1024,
maxImportEntries: 32,
}, },
workspaceSecretStoreRoot: "/data/workspace-secrets",
workspaceSecretRuntimeRoot: "/tmp/thothii-workspace-secrets",
internalQdrantUrl: "http://qdrant:6333", internalQdrantUrl: "http://qdrant:6333",
internalEmbeddingUrl: "http://embedding:11434", internalEmbeddingUrl: "http://embedding:11434",
internalEmbeddingModel: "qwen3-embedding:0.6b", internalEmbeddingModel: "qwen3-embedding:0.6b",
+1 -1
View File
@@ -238,7 +238,7 @@ test("constructs diagnostic URLs only when the resolved URL remains on the servi
expect(resolveDiagnosticUrl).toBeTypeOf("function"); expect(resolveDiagnosticUrl).toBeTypeOf("function");
expect((resolveDiagnosticUrl as (baseUrl: string, path: string) => URL)("https://service.example/base", "/rpc/ping")) expect((resolveDiagnosticUrl as (baseUrl: string, path: string) => URL)("https://service.example/base", "/rpc/ping"))
.toMatchObject({ href: "https://service.example/rpc/ping" }); .toMatchObject({ href: "https://service.example/base/rpc/ping" });
expect(() => (resolveDiagnosticUrl as (baseUrl: string, path: string) => URL)( expect(() => (resolveDiagnosticUrl as (baseUrl: string, path: string) => URL)(
"https://service.example/base", "//diagnostic.invalid/rpc", "https://service.example/base", "//diagnostic.invalid/rpc",
)).toThrow(/origin/i); )).toThrow(/origin/i);
+5
View File
@@ -1766,8 +1766,13 @@ if not any(mount.get("source") == "workspace-secrets" and mount.get("target") ==
checked = [ checked = [
root / "docs/install/local-workspace-registry.md", root / "docs/install/local-workspace-registry.md",
root / "docs/install/server-workspace-registry.md", root / "docs/install/server-workspace-registry.md",
root / "docs/install/local.md",
root / "docs/install/server.md",
root / "docs/install/psd-workspace-setup.md",
root / "docs/guida-utente.md", root / "docs/guida-utente.md",
root / "deploy/workspace-registry.env.example", root / "deploy/workspace-registry.env.example",
root / "deploy/env/local.env.example",
root / "deploy/env/server.env.example",
root / "deploy/psd/operator.env.example", root / "deploy/psd/operator.env.example",
root / "docs/install/examples/thothii-installation.local.yaml", root / "docs/install/examples/thothii-installation.local.yaml",
root / "docs/install/examples/thothii-installation.server.yaml", root / "docs/install/examples/thothii-installation.server.yaml",