refactor: remove workspace publishing and bundles
This commit is contained in:
@@ -20,24 +20,19 @@ test("loads a safe Git workspace registry configuration", () => {
|
||||
});
|
||||
|
||||
test("uses safe workspace registry defaults", () => {
|
||||
expect(loadConfig({}).workspaceRegistry).toMatchObject({
|
||||
const registry = loadConfig({}).workspaceRegistry;
|
||||
expect(registry).toMatchObject({
|
||||
root: "/data/workspace-registry",
|
||||
branch: "main",
|
||||
maxImportBytes: 10 * 1024 * 1024,
|
||||
maxImportEntries: 32,
|
||||
});
|
||||
expect(registry).not.toHaveProperty("gitAuthorName");
|
||||
expect(registry).not.toHaveProperty("gitAuthorEmail");
|
||||
expect(registry).not.toHaveProperty("maxImportBytes");
|
||||
expect(registry).not.toHaveProperty("maxImportEntries");
|
||||
});
|
||||
|
||||
test("rejects a relative registry root and invalid import limits", () => {
|
||||
test("rejects a relative registry root", () => {
|
||||
expect(() => loadConfig({ THT_WORKSPACE_REGISTRY_ROOT: "registry" })).toThrow(/registry/i);
|
||||
expect(() => loadConfig({
|
||||
THT_WORKSPACE_REGISTRY_ROOT: "/data/registry",
|
||||
THT_WORKSPACE_MAX_IMPORT_BYTES: "0",
|
||||
})).toThrow(/import/i);
|
||||
expect(() => loadConfig({
|
||||
THT_WORKSPACE_REGISTRY_ROOT: "/data/registry",
|
||||
THT_WORKSPACE_MAX_IMPORT_ENTRIES: "1.5",
|
||||
})).toThrow(/import/i);
|
||||
});
|
||||
|
||||
test("rejects unsafe registry branch, installation ID, and secret roots", () => {
|
||||
|
||||
Reference in New Issue
Block a user