The lab is marked moved: its forge files are templates filled from the forge-account binding, which the controller cannot answer (issue 1966)

This commit is contained in:
2026-11-07 08:15:37 +01:00
parent ea25e4d589
commit 962e8547b1
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
{
"module": "lab",
"version": "1",
"moved": true,
"capabilities": [
"container-runtime",
"virtualisation"
+2 -1
View File
@@ -125,10 +125,11 @@ function renderedForgeFiles(forge: string): string {
test("the lab requires the forge account for its clones, and holds no registry credential", () => {
const m = JSON.parse(readFileSync(join(labDir, "module.json"), "utf8")) as {
requires: string[]; contributes?: unknown; secrets?: unknown; resources: { id: string; path?: string; template?: string; package?: string }[];
moved?: boolean; requires: string[]; contributes?: unknown; secrets?: unknown; resources: { id: string; path?: string; template?: string; package?: string }[];
build: { artifacts: { name: string; env?: Record<string, string> }[] };
};
assert.ok(m.requires.includes("forge-account") && m.requires.includes("npm-package-registry"));
assert.equal(m.moved, true, "its files are templates filled from the forge-account binding by the node-engine, which a module that has moved asks for");
assert.equal(m.contributes, undefined, "npm-package-registry reads are anonymous: nothing is contributed");
assert.equal(m.secrets, undefined, "no registry secret is sealed to the lab");
const env = m.build.artifacts.find((a) => a.name === "code")?.env ?? {};