test(v2-api): align upload concealment test with cross-tenant-only se… · simstudioai/sim@5d6c47d · GitHub
Skip to content

Commit 5d6c47d

Browse files
committed
test(v2-api): align upload concealment test with cross-tenant-only semantics
#6557 narrowed `createV2ResourceConcealmentPolicy` to conceal only the three cross-tenant authorization classes, deliberately letting a same-workspace policy denial keep its 403 so the caller learns why. My test predated that and asserted a workspace-key denial was concealed as 404. Split into two cases that pin the distinction rather than paper over it: a cross-tenant reach conceals, a workspace-key policy denial does not.
1 parent f633e79 commit 5d6c47d

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

‎apps/sim/app/api/v2/files/uploads/[uploadId]/route.test.ts‎

Lines changed: 15 additions & 8 deletions

0 commit comments

Comments
 (0)