fix: verify the no-Evidence skip on the evidence command
This commit is contained in:
@@ -1249,7 +1249,9 @@ async function realChecks(ctx) {
|
||||
"--reviewed-candidates", `sha256:${"0".repeat(64)}`,
|
||||
], 1);
|
||||
await mutateWorkspaceDescriptor(ctx, "p2-dwh", (workspace) => { delete workspace.evidence; }, "Remove P2 Evidence");
|
||||
const noEvidence = await runThothctlJson(ctx, "negative-no-evidence-run", ["workspace", "preprocess", "run", "--workspace", "p2-dwh"], 0);
|
||||
const noEvidence = await runThothctlJson(ctx, "negative-no-evidence-run", ["workspace", "preprocess", "evidence", "--workspace", "p2-dwh"], 0);
|
||||
assert(["succeeded", "unchanged"].includes(noEvidence.payload.status), "no-evidence evidence did not skip");
|
||||
assert(Array.isArray(noEvidence.payload.warnings) && noEvidence.payload.warnings.length > 0, "no-evidence warning missing");
|
||||
const conflict = await runThothctlJson(ctx, "negative-revision-conflict", ["workspace", "preprocess", "run", "--workspace", "p2-dwh", "--resume", state.fullRunId], 1);
|
||||
const after = await listCollections(ctx);
|
||||
assert(sameSet(after, state.collectionsBefore), "product path created or removed a collection");
|
||||
|
||||
Reference in New Issue
Block a user