fix(files,test): probe requires organize.execute; rename duplicate E6 to E10; trash approval replay test
- POST /files/probe writes media_asset.media_info, so scope organize.read -> organize.execute - e2e e6-w4a-endpoints -> e10-w4a-endpoints (number clashed with e6-auto-recover) - trash: reusing a consumed approval / retired planId is rejected and the file stays Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
2e3c2098fd
commit
d3de2c8971
3 files changed
+10
-5
No files matched your search
@@ -203,6 +203,11 @@ describe.skipIf(skip)("files 删除与回收站", () => {
|
||||
const ok = await del({ items, dryRun: false, planId: dry.body.data.planId }, EXEC_KEY);
|
||||
expect(ok.status).toBe(200);
|
||||
expect(await exists(join(h.lib, "perm.txt"))).toBe(false);
|
||||
// 重放:同名文件再出现,拿用过的 planId(审批已 consumed、计划已退役)再执行 → 拒绝,文件不动
|
||||
await writeFile(join(h.lib, "perm.txt"), "p2");
|
||||
const replay = await del({ items, dryRun: false, planId: dry.body.data.planId }, EXEC_KEY);
|
||||
expect([403, 409]).toContain(replay.status);
|
||||
expect(await readFile(join(h.lib, "perm.txt"), "utf8")).toBe("p2");
|
||||
});
|
||||
|
||||
it("离线根:删除检查返回 root_unavailable,不当作已删除", async () => {
|
||||
|
||||
Reference in new issue
Block a user