Files
PaperClipAI/server/src/__tests__
Nicky LeachandPaperclip 28a9febe36 Cover the agent prerequisite at the test API boundary
Update the route fixture for the new plugin declaration lookup and assert that missing agent scope never allocates a lease or falls back to the host. Document preparation and its unchanged actor and task-admission boundaries in the feature and access maps.

Verified all 54 environment-test route cases, map structure checks, and token gates.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-26 14:30:41 -07:00
..
…

Server Tests

Server tests that need a real PostgreSQL process must use ./helpers/embedded-postgres.ts instead of constructing embedded-postgres directly.

The shared helper creates a throwaway data directory and a reserved-safe loopback port for each test database. This protects the live Paperclip control-plane Postgres from server vitest runs; see PAP-2033 for the incident that introduced this guard.