You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DynamoDB backend is no longer needed - PostgreSQL is the sole backend.
- Remove test/it/dynamo/ (harness, setup, seed data, wiring files)
- Simplify env.js to only build PostgreSQL env vars
- Update CLAUDE.md to reflect PostgreSQL-only IT setup
- Remove it-dynamo input from CI workflow
**Location**: `test/it/` — see [test/it/README.md](test/it/README.md) for full documentation.
371
368
372
-
Integration tests validate the full API request lifecycle against real database backends — no mocks. Every test runs identically against DynamoDB (v2) and PostgreSQL (v3) to ensure migration parity.
369
+
Integration tests validate the full API request lifecycle against a real PostgreSQL database - no mocks.
373
370
374
-
**Architecture**: Shared test factories in `test/it/shared/tests/` are wired to backend-specific harnesses:
371
+
**Architecture**: Shared test factories in `test/it/shared/tests/` are wired to the PostgreSQL harness:
375
372
376
373
```
377
-
shared/tests/sites.js → dynamo/sites.test.js (uses DynamoDB Local + v2 data access)
-**Data reset**: Each `describe` block calls `before(() => resetData())` to ensure isolation
385
-
-**Backend-specific options**: Use `options` parameter for v3-only features (e.g., `{ skipAsyncJobTests: true }` for DynamoDB)
386
-
-**Seed data format**: DynamoDB uses camelCase, PostgreSQL uses snake_case
387
-
-**v3-only entities**: `AsyncJob` only exists in PostgreSQL — DynamoDB tests skip these
381
+
-**Seed data format**: snake_case in `postgres/seed-data/`
388
382
389
383
### Test Requirements
390
384
391
385
-**Behavior changes must include unit tests** - mark as Critical if missing
392
-
-**New or modified endpoints must include integration tests** in `test/it/` — add shared test logic in `shared/tests/`, seed data in both `dynamo/seed-data/` and `postgres/seed-data/`, and wiring files in both backend directories
386
+
-**New or modified endpoints must include integration tests** in `test/it/` — add shared test logic in `shared/tests/`, seed data in `postgres/seed-data/`, and a wiring file in `postgres/`
393
387
- Mock external dependencies (databases, HTTP calls, queues) in unit tests
394
388
- Test access control paths (authorized, forbidden, admin-only)
0 commit comments