Add API integration test suite with Postgres and ClickHouse coverage
This commit is contained in:
1 parent
950ae63f87
commit
e18769e8cf
59 files changed
+8971
-28
No files matched your search
@@ -0,0 +1,30 @@
|
||||
export interface AllowlistEntry {
|
||||
/** Operation key, e.g. "POST /api/auth/sso" */
|
||||
key: string;
|
||||
/** Why this operation cannot be exercised by the harness. */
|
||||
reason: string;
|
||||
/** Only applies when running against this backend (UMAMI_TEST_DB); omit for both. */
|
||||
db?: 'postgres' | 'clickhouse';
|
||||
}
|
||||
|
||||
/**
|
||||
* Operations that are intentionally not covered. Keep this list short and every
|
||||
* entry justified — the reporter warns when an allowlisted operation is
|
||||
* actually called, so entries can be removed once they gain a test.
|
||||
*/
|
||||
export const allowlist: AllowlistEntry[] = [
|
||||
{
|
||||
key: 'POST /api/auth/sso',
|
||||
reason:
|
||||
'Cloud single sign-on handoff. Requires REDIS_URL (returns 500 "Redis is disabled" otherwise); Redis is out of scope for the harness.',
|
||||
},
|
||||
{
|
||||
key: 'GET /api/auth/subscription',
|
||||
reason: 'Cloud billing/subscription lookup; only meaningful under CLOUD_MODE.',
|
||||
},
|
||||
{
|
||||
key: 'DELETE /api/websites/{websiteId}/sessions/{sessionId}',
|
||||
reason: 'Session deletion needs relational storage; sessions.spec.ts skips it on ClickHouse.',
|
||||
db: 'clickhouse',
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user