fix: tighten evidence artifact guarantees
This commit is contained in:
@@ -444,6 +444,25 @@ test.each(evidenceSources)("renders deterministic public Evidence docs for $labe
|
||||
}
|
||||
});
|
||||
|
||||
test("documents the S3 session token file as optional", () => {
|
||||
const descriptor = parseWorkspaceYaml(
|
||||
`${renderWorkspaceWithoutEvidence()}evidence:
|
||||
source: { type: s3, uri: s3://clinical-evidence/published/, credentials: static_files }
|
||||
`,
|
||||
);
|
||||
const markdown = renderWorkspaceDocs(descriptor).markdown;
|
||||
const required = markdown.slice(
|
||||
markdown.indexOf("- Required installation file variables:"),
|
||||
markdown.indexOf("- Optional installation file variables:"),
|
||||
);
|
||||
const optional = markdown.slice(markdown.indexOf("- Optional installation file variables:"));
|
||||
|
||||
expect(required).toContain("EVIDENCE_ACCESS_KEY_FILE");
|
||||
expect(required).toContain("EVIDENCE_SECRET_KEY_FILE");
|
||||
expect(required).not.toContain("EVIDENCE_SESSION_TOKEN_FILE");
|
||||
expect(optional).toContain("EVIDENCE_SESSION_TOKEN_FILE");
|
||||
});
|
||||
|
||||
test("documents same-revision filesystem ownership without claiming P1 materialization", () => {
|
||||
const descriptor = parseWorkspaceYaml(
|
||||
`${renderWorkspaceWithoutEvidence()}evidence:\n source: { type: filesystem, uri: workspace-content/psd-clinical/evidence }\n`,
|
||||
|
||||
Reference in New Issue
Block a user