Test: a planted directory that is not a job id's serves nothing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f344cef3b9
commit
1328b5514c
1 changed files with 3 additions and 0 deletions
|
|
@ -1586,6 +1586,9 @@ test("the artifact read route serves only a job's own FBX and BVH files", async
|
|||
assert.equal(served.raw, "FBX-STUB:BVH-STUB\n");
|
||||
assert.equal((await getArtifact(daemon, `${base}/motion.bvh`)).raw, "BVH-STUB\n");
|
||||
|
||||
// a directory that is not a job's own (its id is not vili-<13 digits>) serves nothing even with a file in it
|
||||
mkdirSync(path.join(daemon.stateRoot, "artifacts", "vili-123"), { recursive: true });
|
||||
writeFileSync(path.join(daemon.stateRoot, "artifacts", "vili-123", "motion.fbx"), "PLANTED");
|
||||
const refused = [
|
||||
`${base}/meta.json`,
|
||||
`${base}/request.json`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue