test: require review fix assertions

- test: require review fix assertions
- test: cover zone repair and imported dns records
- test: wait for dns and tighten assertions
- fix(api): drop the record id of a rolled back record creation
- test(audit): run every api route through the real handlers in an audit matrix
- test(api): run the authorization matrix through the real zone handlers
- test: repair duplicate apex soa through ui
This commit is contained in:
bryanpedini committed 2026-11-19 15:46:12 +01:00
1 parent a884219512
commit 9251c85fd8
14 files changed
+1631 -123

No files matched your search

+2 -6
View File
@@ -3,7 +3,7 @@
import { expect } from '@playwright/test';
import type { AuditRow, Db } from './mysql';
import { REVIEW_FIXES, UNKNOWN_API_OPERATION } from './decisions';
import { UNKNOWN_API_OPERATION } from './decisions';
import type { SecretRegistry } from './secrets';
export const READ_OPERATIONS = new Set([
@@ -208,11 +208,7 @@ export class AuditLedger {
return;
}
if (!route || x.status === 405) {
this.add(
REVIEW_FIXES
? { operation: UNKNOWN_API_OPERATION, status: x.status, actor: x.actor, origin: x.origin, userIsActor: true, error: errorOf(x.body) ?? undefined, optional: false, source: x.source }
: { operation: '*', status: x.status, actor: x.actor, origin: x.origin, userIsActor: true, optional: true, source: x.source },
);
this.add({ operation: UNKNOWN_API_OPERATION, status: x.status, actor: x.actor, origin: x.origin, userIsActor: true, error: errorOf(x.body) ?? undefined, optional: false, source: x.source });
return;
}
const ok = x.status < 400;