test(e2e): set a user password and revoke a delegation from the web ui
- test(e2e): set a user password and revoke a delegation from the web ui - test(e2e): switch a dynamic soa serial to a managed one through the ui - test(e2e): match audit ledger routes on the decoded api path - test(e2e): fuzz injection payloads in paths, filters and record data
This commit is contained in:
1 parent
2a773e740f
commit
1cafcc759e
7 files changed
+433
-28
No files matched your search
@@ -6,7 +6,7 @@ import { run } from '../harness/proc';
|
||||
import { docker } from '../harness/docker';
|
||||
import { parseDig } from '../harness/dig';
|
||||
import { containerName, GROUPS, project, RUN_LABEL } from '../harness/env';
|
||||
import { matchRoute, sanitizeActor } from '../harness/ledger';
|
||||
import { decodedApiPath, matchRoute, sanitizeActor } from '../harness/ledger';
|
||||
import { parseTable, USAGE_TEXT } from '../harness/cli';
|
||||
import { rawRecord, sqlZone, canonicalContent, digData, bumpSerial, utcDay, type RawRecordInput } from '../harness/records';
|
||||
import { Rng, testSeed } from '../harness/rng';
|
||||
@@ -87,6 +87,9 @@ test.describe('harness self-checks', () => {
|
||||
expect(matchRoute('PUT', '/zones/example.org/records/12')).toEqual({ operation: 'record_update', zone: 'example.org.', recordId: 12, targetUser: null });
|
||||
expect(matchRoute('DELETE', '/zones/Example.ORG./users/bob')).toEqual({ operation: 'delegation_revoke', zone: 'example.org.', recordId: null, targetUser: 'bob' });
|
||||
expect(matchRoute('POST', '/zones/x.org/records/delete')?.operation).toBe('record_bulk_delete');
|
||||
expect(decodedApiPath('/api/v1/zones/a%20b.org/records?limit=1')).toBe('/zones/a b.org/records');
|
||||
expect(matchRoute('GET', decodedApiPath('/api/v1/users/%3Cscript%3Ex%3C%2Fscript%3E'))).toBeNull();
|
||||
expect(matchRoute('PUT', decodedApiPath('/api/v1/zones/x.org/users/%27%20OR%20%271%27'))).toEqual({ operation: 'delegation_grant', zone: 'x.org.', recordId: null, targetUser: "' OR '1'" });
|
||||
expect(sanitizeActor('a\u0000b\u0007c')).toBe('a b c');
|
||||
expect(sanitizeActor('x'.repeat(100))).toHaveLength(64);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user