test(supabase): concurrency seeding accepts Storage's duplicate answer
After e2e:shell seeds the same content-addressed drawing, Storage answers HTTP 400 with statusCode 409 (KeyAlreadyExists); any other 400 still fails. Docs: M7 adds no new write path; a TOTP code replays more than once within its span.
This commit is contained in:
1 parent
dcb1a94ee4
commit
f5456f330d
4 files changed
+17
-6
No files matched your search
@@ -122,6 +122,13 @@ Q: Creation page with failed own grants but a server `rights.*` refusal / A: del
|
||||
failed client read only.
|
||||
Q: What does Retry re-read? / A: delegated (plan challenge) — roles and own grants (and the creation page's species
|
||||
list when it failed); a failed Retry never wipes the profile, roles or workspace already held.
|
||||
Q: The new unavailable-permissions e2e test is skipped on `chromium-375` / A: [gated 2026-11-02, mid-run, internal]
|
||||
criterion 5 asks for a desktop proof; the skip follows the file's A0/A1/S1 idiom; the 375 px admin pages stay
|
||||
covered by the unskipped « admin screens » and « access per right » tests.
|
||||
Q: Sandbox suites share one stack's state / A: [gated 2026-11-02, mid-run, internal] two pre-existing test defects
|
||||
surfaced by the gates are fixed inside this run (FILE SCOPE extended): `sheets-admin.sandbox.ts` working-copy case
|
||||
(green only from the second run) and `sheets-concurrency.sandbox.ts` storage seeding (HTTP 400 duplicate after
|
||||
e2e:shell seeded the same content-addressed object). Product code untouched.
|
||||
|
||||
## ACCEPTANCE CRITERIA
|
||||
|
||||
@@ -147,7 +154,7 @@ list when it failed); a failed Retry never wipes the profile, roles or workspace
|
||||
read to the server » test is replaced; `pnpm test:run` is green on each lot.
|
||||
CHECK: cd /tmp/claude-1000/-home-bchanot-Documents-faunosteo/e641af9a-743e-46d0-9804-99667836040e/scratchpad/v1-2 && pnpm --filter @faunosteo/app exec vitest run tests/unit/routes.admin.test.tsx tests/unit/state.authStore.test.ts tests/unit/lib.dates.test.ts tests/unit/admin.validation.test.ts tests/unit/components.SecurityPanel.test.tsx && echo UNIT-OK
|
||||
EXPECT: UNIT-OK
|
||||
EVIDENCE: pending
|
||||
EVIDENCE: MET exit=0 marker-found :: RUN v3.2.7 /tmp/claude-1000/-home-bchanot-Documents-faunosteo/e641af9a-743e-46d0-9804-99667836040e/scratchpad/v1-2/apps/app ✓ tests/unit/lib…
|
||||
5. `e2e:shell` (sandbox) proves on desktop: an editor at `aal2` gets the form; a reviewer-only account gets
|
||||
« Accès non autorisé » on `/app/admin/sheets/new`; with the own-grants request answered 500, the unavailable
|
||||
screen shows (no form field present), axe clean, and Retry after the request is restored shows the form. At
|
||||
@@ -210,6 +217,7 @@ list when it failed); a failed Retry never wipes the profile, roles or workspace
|
||||
- apps/app/e2e/shell/{admin.spec.ts,catalogue spec}
|
||||
- supabase/migrations/20261102100000_sheet_admin_reads.sql (M7), supabase/tests/{015_catalog_access,022_sheet_admin_reads}.sql
|
||||
- packages/supabase/tests/sandbox/mfa-behaviour.sandbox.ts
|
||||
- packages/supabase/tests/sandbox/{sheets-admin,sheets-concurrency}.sandbox.ts (state-independence fixes, mid-run)
|
||||
- docs/development/IDENTITY.md, docs/development/V1-2_ANATOMICAL_SHEETS.md, docs/design/README.md,
|
||||
docs/design/v1-2-4/REVUE.md, .claude/tasks/contracts/2026-11-02-v1-2-5-admin-catalogue.md,
|
||||
.claude/audits/2026-11-02-v1-2-5-label-proposals.md
|
||||
Reference in new issue
Block a user