@fuzdev/fuz_app 0.184.0 → 0.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/CLAUDE.md +4 -1
- package/dist/actions/register_action_ws.d.ts +14 -7
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/ws_socket_session.d.ts +17 -4
- package/dist/actions/ws_socket_session.d.ts.map +1 -1
- package/dist/actions/ws_socket_session.js +38 -6
- package/dist/auth/CLAUDE.md +7 -4
- package/dist/auth/audit_log_routes.d.ts +1 -1
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.js +3 -2
- package/dist/auth/cleanup.d.ts +34 -3
- package/dist/auth/cleanup.d.ts.map +1 -1
- package/dist/auth/cleanup.js +11 -3
- package/dist/http/CLAUDE.md +1 -1
- package/dist/http/pending_effects.d.ts +8 -4
- package/dist/http/pending_effects.d.ts.map +1 -1
- package/dist/http/route_spec.d.ts +3 -3
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/realtime/audit_log_sse.d.ts +1 -1
- package/dist/realtime/sse.d.ts +2 -2
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse_constants.d.ts +1 -1
- package/dist/realtime/sse_constants.js +1 -1
- package/dist/server/app_server.d.ts +59 -71
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +52 -60
- package/dist/server/shutdown_drain.d.ts +69 -0
- package/dist/server/shutdown_drain.d.ts.map +1 -0
- package/dist/server/shutdown_drain.js +77 -0
- package/dist/testing/CLAUDE.md +73 -41
- package/dist/testing/admin_integration.d.ts +2 -2
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +36 -20
- package/dist/testing/cross_backend/bootstrap_backend.d.ts +3 -1
- package/dist/testing/cross_backend/bootstrap_backend.d.ts.map +1 -1
- package/dist/testing/cross_backend/bootstrap_backend.js +5 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts +10 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/create_dual_spawn_global_setup.js +33 -7
- package/dist/testing/cross_backend/in_process_setup.d.ts +1 -1
- package/dist/testing/cross_backend/in_process_setup.js +1 -1
- package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
- package/dist/testing/cross_backend/rpc_success_fixtures.js +2 -1
- package/dist/testing/cross_backend/spawn_backend.d.ts +14 -0
- package/dist/testing/cross_backend/spawn_backend.d.ts.map +1 -1
- package/dist/testing/cross_backend/spawn_backend.js +56 -8
- package/dist/testing/cross_backend/spine_suites.d.ts +17 -14
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +33 -13
- package/dist/testing/cross_backend/standard.d.ts +18 -82
- package/dist/testing/cross_backend/standard.d.ts.map +1 -1
- package/dist/testing/cross_backend/standard.js +6 -21
- package/dist/testing/cross_backend/standard_auth.d.ts +74 -0
- package/dist/testing/cross_backend/standard_auth.d.ts.map +1 -0
- package/dist/testing/cross_backend/standard_auth.js +28 -0
- package/dist/testing/cross_backend/standard_bundle.d.ts +48 -0
- package/dist/testing/cross_backend/standard_bundle.d.ts.map +1 -0
- package/dist/testing/cross_backend/standard_bundle.js +43 -0
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +11 -0
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +13 -0
- package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_bun.js +5 -4
- package/dist/testing/cross_backend/testing_server_core.d.ts +16 -3
- package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_core.js +20 -4
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +6 -2
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.js +7 -3
- package/dist/testing/error_coverage.d.ts +5 -0
- package/dist/testing/error_coverage.d.ts.map +1 -1
- package/dist/testing/error_coverage.js +2 -1
- package/dist/testing/integration.d.ts +4 -20
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +49 -79
- package/dist/testing/integration_helpers.d.ts +16 -0
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +29 -1
- package/dist/testing/middleware_gate_probes.d.ts +55 -1
- package/dist/testing/middleware_gate_probes.d.ts.map +1 -1
- package/dist/testing/middleware_gate_probes.js +69 -3
- package/dist/testing/test_app.d.ts +3 -2
- package/dist/testing/test_app.d.ts.map +1 -1
- package/dist/testing/test_app.js +5 -4
- package/package.json +1 -1
|
@@ -30,6 +30,13 @@ import '../assert_dev_env.js';
|
|
|
30
30
|
* a startup failure reports it with the exit code or signal, and an exit
|
|
31
31
|
* after startup that teardown didn't cause is logged with it.
|
|
32
32
|
*
|
|
33
|
+
* Teardown holds the backend to a clean exit: a spine whose graceful
|
|
34
|
+
* shutdown gave up on work still running, or threw, exits `1` (the TS core's
|
|
35
|
+
* `start_testing_server`, the Rust spine's `StartupError::ShutdownGivenUp`),
|
|
36
|
+
* and `teardown` rejects on anything but exit code `0` — naming the backend,
|
|
37
|
+
* its exit code or signal, and its stderr tail — as it does for a backend
|
|
38
|
+
* that exited during the run or had to be killed.
|
|
39
|
+
*
|
|
33
40
|
* Bootstrapping (`POST /api/account/bootstrap`) is a separate concern —
|
|
34
41
|
* the caller composes `bootstrap()` from `testing/transports/bootstrap.ts`
|
|
35
42
|
* against a `FetchTransport` built around `handle.config.base_url`.
|
|
@@ -300,6 +307,8 @@ export const spawn_backend = async (config) => {
|
|
|
300
307
|
let exit_info = null;
|
|
301
308
|
let started = false;
|
|
302
309
|
let teardown_invoked = false;
|
|
310
|
+
// an exit after startup that teardown didn't cause — a teardown failure
|
|
311
|
+
let exited_during_run = false;
|
|
303
312
|
// The child leads its own process group (`detached: true`), so its pid is
|
|
304
313
|
// the group id; a descendant stays in the group after the child exits. Once
|
|
305
314
|
// the group is seen empty it is never signalled again: its id is a pid the
|
|
@@ -335,6 +344,7 @@ export const spawn_backend = async (config) => {
|
|
|
335
344
|
// a startup failure is reported by the throw below; an exit teardown
|
|
336
345
|
// caused is expected
|
|
337
346
|
if (started && !teardown_invoked) {
|
|
347
|
+
exited_during_run = true;
|
|
338
348
|
console.error(`spawn_backend(${config.name}): backend exited unexpectedly (${format_exit(code, signal)})` +
|
|
339
349
|
format_stderr_tail());
|
|
340
350
|
}
|
|
@@ -369,12 +379,50 @@ export const spawn_backend = async (config) => {
|
|
|
369
379
|
// already exited, and would hold the port or the database
|
|
370
380
|
signal_group('SIGTERM');
|
|
371
381
|
};
|
|
372
|
-
|
|
373
|
-
|
|
382
|
+
/** Tear the group down, resolving how the wait ended; never rejects. */
|
|
383
|
+
let stopped = null;
|
|
384
|
+
const stop = () => {
|
|
374
385
|
teardown_sync();
|
|
375
386
|
live_teardowns.delete(teardown_sync);
|
|
376
|
-
return (
|
|
387
|
+
return (stopped ??= wait_for_group_exit());
|
|
388
|
+
};
|
|
389
|
+
/** Why the child's exit was not the clean one teardown requires, or `null`. */
|
|
390
|
+
const describe_unclean_exit = (wait) => {
|
|
391
|
+
if (wait === 'gave_up') {
|
|
392
|
+
return `teardown gave up with the process group still running ${TEARDOWN_SIGKILL_GRACE_MS}ms after SIGKILL`;
|
|
393
|
+
}
|
|
394
|
+
if (exit_info === null)
|
|
395
|
+
return 'never exited';
|
|
396
|
+
if (exit_info.kind === 'spawn_error')
|
|
397
|
+
return `failed to spawn (${exit_info.message})`;
|
|
398
|
+
const exit = format_exit(exit_info.code, exit_info.signal);
|
|
399
|
+
if (exited_during_run)
|
|
400
|
+
return `exited during the run (${exit}), before teardown`;
|
|
401
|
+
const clean = exit_info.signal === null && exit_info.code === 0;
|
|
402
|
+
// ahead of the clean check: a child that exited 0 can leave its group
|
|
403
|
+
// running, and the SIGKILL that ended the group is still a failure
|
|
404
|
+
if (wait === 'killed') {
|
|
405
|
+
return clean
|
|
406
|
+
? `exited (${exit}) at teardown, but its process group outlived it and was killed ` +
|
|
407
|
+
`${TEARDOWN_SIGKILL_GRACE_MS}ms after SIGTERM — a descendant that did not exit on SIGTERM`
|
|
408
|
+
: `exited (${exit}) at teardown — its shutdown did not finish within ` +
|
|
409
|
+
`${TEARDOWN_SIGKILL_GRACE_MS}ms of SIGTERM, so its group was killed`;
|
|
410
|
+
}
|
|
411
|
+
if (clean)
|
|
412
|
+
return null;
|
|
413
|
+
if (exit_info.signal !== null) {
|
|
414
|
+
return (`died by ${exit} at teardown — the process did not handle SIGTERM ` +
|
|
415
|
+
'(a wrapper that dies by the signal, e.g. `gro run`)');
|
|
416
|
+
}
|
|
417
|
+
return `exited (${exit}) at teardown, not code=0 — a shutdown that gave up on work still running or failed`;
|
|
377
418
|
};
|
|
419
|
+
let teardown_done = null;
|
|
420
|
+
const teardown = () => (teardown_done ??= stop().then((wait) => {
|
|
421
|
+
const unclean = describe_unclean_exit(wait);
|
|
422
|
+
if (unclean !== null) {
|
|
423
|
+
throw new Error(`spawn_backend(${config.name}): ${unclean}${format_stderr_tail()}`);
|
|
424
|
+
}
|
|
425
|
+
}));
|
|
378
426
|
// Wait for the child and every process left in its group to exit, so callers
|
|
379
427
|
// can be sure the port is free. A backend that ignores SIGTERM — or whose
|
|
380
428
|
// graceful shutdown wedges (e.g. a runtime whose `server.stop()` never
|
|
@@ -390,16 +438,15 @@ export const spawn_backend = async (config) => {
|
|
|
390
438
|
let killed = false;
|
|
391
439
|
while (is_group_running()) {
|
|
392
440
|
const now = Date.now();
|
|
393
|
-
if (now >= give_up_at)
|
|
394
|
-
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
441
|
+
if (now >= give_up_at)
|
|
442
|
+
return 'gave_up';
|
|
397
443
|
if (!killed && now >= kill_at) {
|
|
398
444
|
killed = true;
|
|
399
445
|
signal_group('SIGKILL');
|
|
400
446
|
}
|
|
401
447
|
await sleep(TEARDOWN_POLL_INTERVAL_MS);
|
|
402
448
|
}
|
|
449
|
+
return killed ? 'killed' : 'exited';
|
|
403
450
|
};
|
|
404
451
|
live_teardowns.add(teardown_sync);
|
|
405
452
|
try {
|
|
@@ -410,7 +457,8 @@ export const spawn_backend = async (config) => {
|
|
|
410
457
|
return { config, child, daemon_token, teardown };
|
|
411
458
|
}
|
|
412
459
|
catch (err) {
|
|
413
|
-
|
|
460
|
+
// the startup failure is the report, whatever the exit
|
|
461
|
+
await stop();
|
|
414
462
|
throw new Error(`spawn_backend(${config.name}) failed: ${err.message}${format_stderr_tail()}`);
|
|
415
463
|
}
|
|
416
464
|
};
|
|
@@ -39,7 +39,8 @@ import { type CrossProcessSetupOptions, type ReconstructedBootstrappedBackendHan
|
|
|
39
39
|
import { type SimpleRequestCrossTestOptions } from './simple_request.js';
|
|
40
40
|
import { type TestingBackdoorMethod } from './spine_surface_constants.js';
|
|
41
41
|
import { type CrossProcessSseTestOptions } from './sse_round_trip.js';
|
|
42
|
-
import { type
|
|
42
|
+
import { type StandardCrossTestOptions } from './standard.js';
|
|
43
|
+
import { type StandardAuthCrossTestOptions } from './standard_auth.js';
|
|
43
44
|
import { type TestingBackdoorCrossTestOptions } from './testing_backdoor.js';
|
|
44
45
|
import { type TokenLifetimeCrossTestOptions } from './token_lifetime.js';
|
|
45
46
|
import { type TokenScopeSurfaceCrossTestOptions } from './token_scope_surface.js';
|
|
@@ -53,15 +54,16 @@ import { type CrossProcessWsTestOptions } from './ws_round_trip.js';
|
|
|
53
54
|
/**
|
|
54
55
|
* Every shipped suite `describe_spine_cross_suites` runs, each named by its
|
|
55
56
|
* module under `testing/cross_backend/` (`ws_round_trip` is
|
|
56
|
-
* `describe_cross_process_ws_tests
|
|
57
|
+
* `describe_cross_process_ws_tests`; `standard_auth` and `standard` the two
|
|
58
|
+
* halves of the standard bundle, its auth suites and the rest). Closed: a
|
|
57
59
|
* guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
|
|
58
60
|
* exports a `describe_*` suite, so a new suite fails until it is registered.
|
|
59
61
|
*/
|
|
60
|
-
export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "capability_mounts", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_conformance", "credential_conformance_wire", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "request_header_conformance_wire", "request_target_conformance_wire", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rooms_ws", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "testing_backdoor", "token_lifetime", "token_scope_surface", "transport_composition", "ws_connection_cap", "ws_envelope", "ws_inbound_dispatch", "ws_outbound_overflow", "ws_role_gated", "ws_round_trip"];
|
|
62
|
+
export declare const SUITE_NAMES: readonly ["account_lifecycle", "actor_lookup", "app_settings", "body_size", "body_size_smuggling", "capability_mounts", "cell_crud", "cell_gated_create", "cell_grant_role", "cell_grant_steward", "cell_moderate", "cell_ref_admission", "cell_relations", "cookie_attributes", "credential_conformance", "credential_conformance_wire", "credential_deadline", "credential_header_robustness", "fact_serving", "identity_parity", "origin", "origin_conformance", "origin_scope", "peer_ping_ws", "query_shape", "ready", "request_header_conformance_wire", "request_target_conformance_wire", "role_grant_offer_enumeration", "role_grant_offer_lifecycle", "role_grant_offer_notification_ws", "role_grant_participation", "role_grant_role_grammar", "rooms_ws", "rpc_adversarial", "session_cap", "session_cookie_codec", "simple_request", "sse_round_trip", "standard", "standard_auth", "testing_backdoor", "token_lifetime", "token_scope_surface", "transport_composition", "ws_connection_cap", "ws_envelope", "ws_inbound_dispatch", "ws_outbound_overflow", "ws_role_gated", "ws_round_trip"];
|
|
61
63
|
/** A shipped single-backend cross suite, named by its module. */
|
|
62
64
|
export type SuiteName = (typeof SUITE_NAMES)[number];
|
|
63
65
|
/** A shipped suite module `describe_spine_cross_suites` leaves out. */
|
|
64
|
-
export type StandaloneSuiteName = 'conformance_table' | 'differential' | 'login_security' | 'ws_action_rate_limit';
|
|
66
|
+
export type StandaloneSuiteName = 'conformance_table' | 'differential' | 'login_security' | 'standard_bundle' | 'ws_action_rate_limit';
|
|
65
67
|
/**
|
|
66
68
|
* The shipped suite modules `describe_spine_cross_suites` leaves out, each with
|
|
67
69
|
* why. Their entry points stay as they are; a consumer calls them beside the
|
|
@@ -123,7 +125,8 @@ export interface SuiteOptionsMap {
|
|
|
123
125
|
session_cookie_codec: SessionCookieCodecCrossTestOptions;
|
|
124
126
|
simple_request: SimpleRequestCrossTestOptions;
|
|
125
127
|
sse_round_trip: CrossProcessSseTestOptions;
|
|
126
|
-
standard:
|
|
128
|
+
standard: StandardCrossTestOptions;
|
|
129
|
+
standard_auth: StandardAuthCrossTestOptions;
|
|
127
130
|
testing_backdoor: TestingBackdoorCrossTestOptions;
|
|
128
131
|
token_lifetime: TokenLifetimeCrossTestOptions;
|
|
129
132
|
token_scope_surface: TokenScopeSurfaceCrossTestOptions;
|
|
@@ -195,11 +198,11 @@ export interface SpineSuiteRoles {
|
|
|
195
198
|
}
|
|
196
199
|
/** Options for `describe_spine_cross_suites`. */
|
|
197
200
|
export interface SpineCrossSuitesOptions {
|
|
198
|
-
/** The declared surface —
|
|
201
|
+
/** The declared surface — `standard_auth`, `standard` and `rpc_adversarial` enumerate it. */
|
|
199
202
|
readonly surface_source: AppSurfaceSpec;
|
|
200
|
-
/** The session cookie's name, for
|
|
203
|
+
/** The session cookie's name, for `standard_auth` and `standard`. */
|
|
201
204
|
readonly session_cookie_name: string;
|
|
202
|
-
/** The backend's RPC endpoints, for
|
|
205
|
+
/** The backend's RPC endpoints, for `standard_auth` and `standard`. */
|
|
203
206
|
readonly rpc_endpoints: RpcEndpointsSuiteOption;
|
|
204
207
|
/**
|
|
205
208
|
* The RPC endpoints the backend live-mounts, for the methods it keeps off
|
|
@@ -209,7 +212,7 @@ export interface SpineCrossSuitesOptions {
|
|
|
209
212
|
* still runs once, from the declared surface.
|
|
210
213
|
*/
|
|
211
214
|
readonly live_rpc_endpoints?: RpcEndpointsSuiteOption;
|
|
212
|
-
/** The backend's role registry; given,
|
|
215
|
+
/** The backend's role registry; given, `standard_auth` runs its admin suite. */
|
|
213
216
|
readonly roles?: RoleRegistry;
|
|
214
217
|
/**
|
|
215
218
|
* Setup options every suite's `setup_test` starts from — a signup path the
|
|
@@ -260,8 +263,8 @@ export interface SpineCrossSuitesOptions {
|
|
|
260
263
|
* The backend's request-body cap on `rpc_path`, in bytes, when it isn't the
|
|
261
264
|
* spine default (`SPINE_BODY_LIMIT_DEFAULT_BYTES`): the boundary
|
|
262
265
|
* `body_size`, `body_size_smuggling`, `transport_composition`'s RPC
|
|
263
|
-
* over-cap row and
|
|
264
|
-
*
|
|
266
|
+
* over-cap row and `standard`'s body-limit probe of the RPC endpoint
|
|
267
|
+
* probe.
|
|
265
268
|
*/
|
|
266
269
|
readonly rpc_max_body_bytes?: number;
|
|
267
270
|
/**
|
|
@@ -270,12 +273,12 @@ export interface SpineCrossSuitesOptions {
|
|
|
270
273
|
* `ws_round_trip`'s oversized-message case sends past.
|
|
271
274
|
*/
|
|
272
275
|
readonly ws_max_message_bytes?: number;
|
|
273
|
-
/** Forwarded to
|
|
276
|
+
/** Forwarded to `standard` (`StandardCrossTestOptions.rpc_success_fixtures`). */
|
|
274
277
|
readonly rpc_success_fixtures?: RpcSuccessFixtures;
|
|
275
|
-
/** Forwarded to
|
|
278
|
+
/** Forwarded to `standard` (`StandardCrossTestOptions.rpc_skip_methods`). */
|
|
276
279
|
readonly rpc_skip_methods?: Array<string>;
|
|
277
280
|
/**
|
|
278
|
-
* Forwarded to
|
|
281
|
+
* Forwarded to `standard` (`StandardCrossTestOptions.rpc_input_overrides`)
|
|
279
282
|
* and to `rpc_adversarial` (`RpcAdversarialCrossTestOptions.input_overrides`),
|
|
280
283
|
* where each override seeds the method's params cases. Those cases are sent
|
|
281
284
|
* as a single-actor principal, so an override omits `acting`. A key naming a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spine_suites.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/spine_suites.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwG9B,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAmC,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAClG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAEN,KAAK,gCAAgC,EACrC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEN,KAAK,2BAA2B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEN,KAAK,2BAA2B,EAChC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAkC,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAEN,KAAK,iCAAiC,EACtC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAM7D,OAAO,EAGN,KAAK,gCAAgC,EACrC,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAIN,KAAK,6BAA6B,EAClC,MAAM,sBAAsB,CAAC;AAK9B,OAAO,EAEN,KAAK,gCAAgC,EACrC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEN,KAAK,kCAAkC,EACvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEN,KAAK,qCAAqC,EAC1C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEN,KAAK,yCAAyC,EA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S,KAAK,SAAS,CAAC;CAChE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,GACjC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,EAChC,cAAc,sBAAsB,KAClC,IAqEF,CAAC;AAmBF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,2BAA2B,GACvC,QAAQ,sCAAsC,EAC9C,SAAS,uBAAuB,KAC9B,IAEF,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,0BAA0B,gDAAgD,CAAC"}
|
|
@@ -44,7 +44,7 @@ import '../assert_dev_env.js';
|
|
|
44
44
|
* built on a derived value. A required option the merge leaves `undefined`
|
|
45
45
|
* throws at collection.
|
|
46
46
|
* - `rpc_success_fixtures` / `rpc_skip_methods` / `rpc_input_overrides` go to
|
|
47
|
-
* the standard
|
|
47
|
+
* the `standard` suite's RPC round-trip; `rpc_input_overrides` also seeds
|
|
48
48
|
* `rpc_adversarial`'s params cases (each override is the valid base they
|
|
49
49
|
* break one field of). A key naming a method on neither the declared surface
|
|
50
50
|
* nor `live_rpc_endpoints` throws at collection.
|
|
@@ -135,7 +135,8 @@ import { default_cross_process_setup } from './setup.js';
|
|
|
135
135
|
import { describe_simple_request_cross_tests } from './simple_request.js';
|
|
136
136
|
import { SPINE_PARTICIPANT_ROLE, SPINE_ROLE_GATED_WS_PATH, SPINE_ROLE_GATED_WS_ROLES } from './spine_surface_constants.js';
|
|
137
137
|
import { describe_cross_process_sse_tests } from './sse_round_trip.js';
|
|
138
|
-
import {
|
|
138
|
+
import { describe_standard_cross_tests } from './standard.js';
|
|
139
|
+
import { describe_standard_auth_cross_tests } from './standard_auth.js';
|
|
139
140
|
import { describe_testing_backdoor_cross_tests } from './testing_backdoor.js';
|
|
140
141
|
import { describe_token_lifetime_cross_tests } from './token_lifetime.js';
|
|
141
142
|
import { describe_token_scope_surface_cross_tests } from './token_scope_surface.js';
|
|
@@ -150,7 +151,8 @@ import { DB_INVARIANTS_EXCLUDE_ALL } from '../db_invariant_queries.js';
|
|
|
150
151
|
/**
|
|
151
152
|
* Every shipped suite `describe_spine_cross_suites` runs, each named by its
|
|
152
153
|
* module under `testing/cross_backend/` (`ws_round_trip` is
|
|
153
|
-
* `describe_cross_process_ws_tests
|
|
154
|
+
* `describe_cross_process_ws_tests`; `standard_auth` and `standard` the two
|
|
155
|
+
* halves of the standard bundle, its auth suites and the rest). Closed: a
|
|
154
156
|
* guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
|
|
155
157
|
* exports a `describe_*` suite, so a new suite fails until it is registered.
|
|
156
158
|
*/
|
|
@@ -195,6 +197,7 @@ export const SUITE_NAMES = [
|
|
|
195
197
|
'simple_request',
|
|
196
198
|
'sse_round_trip',
|
|
197
199
|
'standard',
|
|
200
|
+
'standard_auth',
|
|
198
201
|
'testing_backdoor',
|
|
199
202
|
'token_lifetime',
|
|
200
203
|
'token_scope_surface',
|
|
@@ -215,7 +218,8 @@ export const STANDALONE_CROSS_SUITES = {
|
|
|
215
218
|
differential: 'compares two backends: it needs both handles of a dual-spawn project, not one backend',
|
|
216
219
|
login_security: 'needs a backend spawned with the login limiters enabled, which the standard suites would exhaust',
|
|
217
220
|
ws_action_rate_limit: 'needs a backend spawned with the action limiters enabled, which the standard suites would exhaust',
|
|
218
|
-
conformance_table: "a runner over the consumer's own cases, not a suite"
|
|
221
|
+
conformance_table: "a runner over the consumer's own cases, not a suite",
|
|
222
|
+
standard_bundle: 'runs `standard_auth` and `standard` in one call, which the registry runs as two suites'
|
|
219
223
|
};
|
|
220
224
|
/**
|
|
221
225
|
* The backdoors `describe_spine_cross_suites` requires of every backend, since
|
|
@@ -747,34 +751,50 @@ const SUITE_ENTRIES = {
|
|
|
747
751
|
required: { setup_test: true, capabilities: true, base_url: true }
|
|
748
752
|
},
|
|
749
753
|
standard: {
|
|
750
|
-
// a keeper-only account for the admin suite's keeper ≠ admin probe —
|
|
751
|
-
// `ROLE_KEEPER` is bootstrap-only, so it is seeded at reset
|
|
752
754
|
derive: (c) => ({
|
|
753
|
-
setup_test: c.setup(
|
|
754
|
-
extra_accounts: [{ username: 'non_admin_keeper', roles: [ROLE_KEEPER] }]
|
|
755
|
-
}),
|
|
755
|
+
setup_test: c.setup(),
|
|
756
756
|
surface_source: c.options.surface_source,
|
|
757
|
-
capabilities: c.config.capabilities,
|
|
758
757
|
session_cookie_name: c.options.session_cookie_name,
|
|
759
758
|
rpc_endpoints: c.options.rpc_endpoints,
|
|
760
|
-
roles: c.options.roles,
|
|
761
759
|
rpc_success_fixtures: c.options.rpc_success_fixtures,
|
|
762
760
|
rpc_skip_methods: c.options.rpc_skip_methods,
|
|
763
761
|
rpc_input_overrides: c.options.rpc_input_overrides,
|
|
764
762
|
base_url: c.config.base_url,
|
|
765
763
|
rpc_max_body_bytes: c.options.rpc_max_body_bytes
|
|
766
764
|
}),
|
|
767
|
-
describe:
|
|
765
|
+
describe: describe_standard_cross_tests,
|
|
768
766
|
transcript: TRANSCRIPT_RAW_SOCKET,
|
|
769
767
|
required: {
|
|
770
768
|
setup_test: true,
|
|
771
769
|
surface_source: true,
|
|
772
770
|
session_cookie_name: true,
|
|
773
771
|
rpc_endpoints: true,
|
|
774
|
-
capabilities: true,
|
|
775
772
|
base_url: true
|
|
776
773
|
}
|
|
777
774
|
},
|
|
775
|
+
standard_auth: {
|
|
776
|
+
// a keeper-only account for the admin suite's keeper ≠ admin probe —
|
|
777
|
+
// `ROLE_KEEPER` is bootstrap-only, so it is seeded at reset
|
|
778
|
+
derive: (c) => ({
|
|
779
|
+
setup_test: c.setup({
|
|
780
|
+
extra_accounts: [{ username: 'non_admin_keeper', roles: [ROLE_KEEPER] }]
|
|
781
|
+
}),
|
|
782
|
+
surface_source: c.options.surface_source,
|
|
783
|
+
capabilities: c.config.capabilities,
|
|
784
|
+
session_cookie_name: c.options.session_cookie_name,
|
|
785
|
+
rpc_endpoints: c.options.rpc_endpoints,
|
|
786
|
+
roles: c.options.roles
|
|
787
|
+
}),
|
|
788
|
+
describe: describe_standard_auth_cross_tests,
|
|
789
|
+
transcript: 'http',
|
|
790
|
+
required: {
|
|
791
|
+
setup_test: true,
|
|
792
|
+
surface_source: true,
|
|
793
|
+
session_cookie_name: true,
|
|
794
|
+
rpc_endpoints: true,
|
|
795
|
+
capabilities: true
|
|
796
|
+
}
|
|
797
|
+
},
|
|
778
798
|
testing_backdoor: {
|
|
779
799
|
derive: (c) => ({ ...rpc_gated(c), ws: c.ws }),
|
|
780
800
|
describe: describe_testing_backdoor_cross_tests,
|
|
@@ -1,53 +1,22 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* - `describe_standard_integration_tests`
|
|
12
|
-
* - `describe_round_trip_validation`
|
|
13
|
-
* - `describe_rpc_round_trip_tests`
|
|
14
|
-
* - `describe_data_exposure_tests`
|
|
15
|
-
*
|
|
16
|
-
* **Gated on `roles`** — included when the consumer supplies a
|
|
17
|
-
* `RoleRegistry`:
|
|
18
|
-
*
|
|
19
|
-
* - `describe_standard_admin_integration_tests`
|
|
20
|
-
*
|
|
21
|
-
* **Suites omitted** — the ones that don't survive a process boundary,
|
|
22
|
-
* documented here so per-consumer files don't have to repeat the
|
|
23
|
-
* bookkeeping:
|
|
24
|
-
*
|
|
25
|
-
* - `describe_rate_limiting_tests` — builds a fresh `TestApp` per test to
|
|
26
|
-
* inject tight per-test rate-limiter overrides. That path requires
|
|
27
|
-
* in-process construction of `Backend` + rate limiter; the spawned
|
|
28
|
-
* binary has neither knob nor restart-per-test budget.
|
|
29
|
-
* - `describe_audit_completeness_tests` — reaches into FK-structural
|
|
30
|
-
* introspection that only the in-process backend exposes. Wire-level
|
|
31
|
-
* audit observability lives in the consumer's own audit `.cross.test.ts`
|
|
32
|
-
* driving `audit_log_list` / `audit_log_role_grant_history`.
|
|
3
|
+
* The standard suites against a spawned backend that fuz_app's transcript
|
|
4
|
+
* differential can't run: `describe_middleware_gate_tests`, whose probes write
|
|
5
|
+
* raw request heads over a socket, and `describe_round_trip_validation`,
|
|
6
|
+
* `describe_rpc_round_trip_tests` and `describe_data_exposure_tests`, which
|
|
7
|
+
* build fixtures outside a test. The standard auth suites, which it can, are
|
|
8
|
+
* `standard_auth.ts`; `describe_standard_cross_process_tests`
|
|
9
|
+
* (`standard_bundle.ts`) runs both in one call.
|
|
33
10
|
*
|
|
34
11
|
* @module
|
|
35
12
|
*/
|
|
36
|
-
import type { RoleRegistry } from '../../auth/role_schema.js';
|
|
37
13
|
import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
38
14
|
import { type RpcSuccessFixtures } from '../rpc_round_trip.js';
|
|
39
15
|
import type { RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
40
|
-
import type { BackendCapabilities } from './capabilities.js';
|
|
41
|
-
import type { UncoveredEntry } from '../error_coverage.js';
|
|
42
16
|
import type { SetupTest, TestFixture } from './setup.js';
|
|
43
17
|
import type { RouteParamValues } from '../schema_generators.js';
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
* The in-process suites' shared options minus their in-process-only knobs
|
|
48
|
-
* (`create_route_specs`, `rate_limiting_app_options`).
|
|
49
|
-
*/
|
|
50
|
-
export interface StandardCrossProcessTestOptions {
|
|
18
|
+
/** Configuration for `describe_standard_cross_tests`. */
|
|
19
|
+
export interface StandardCrossTestOptions {
|
|
51
20
|
/** Per-test fixture-producing function. */
|
|
52
21
|
setup_test: SetupTest;
|
|
53
22
|
/**
|
|
@@ -55,59 +24,27 @@ export interface StandardCrossProcessTestOptions {
|
|
|
55
24
|
* in-process and cross-process tests.
|
|
56
25
|
*/
|
|
57
26
|
surface_source: AppSurfaceSpec;
|
|
58
|
-
/**
|
|
59
|
-
* Backend capability declarations. Forwarded to the one bundled suite
|
|
60
|
-
* that gates on them (`describe_standard_integration_tests`); the other
|
|
61
|
-
* suites in the bundle read no flags and take no capability field.
|
|
62
|
-
*/
|
|
63
|
-
capabilities: BackendCapabilities;
|
|
64
|
-
/** The session cookie's name — read for the session cookie and the factory-form `rpc_endpoints` resolution. */
|
|
27
|
+
/** The session cookie's name — read for the factory-form `rpc_endpoints` resolution. */
|
|
65
28
|
session_cookie_name: string;
|
|
66
|
-
/**
|
|
67
|
-
* RPC endpoint specs — required. The standard integration tests drive
|
|
68
|
-
* `account_verify`, `account_session_*`, `account_token_*` through the
|
|
69
|
-
* RPC surface (and admin tests, when wired, drive role_grant grant/revoke
|
|
70
|
-
* through it too).
|
|
71
|
-
*/
|
|
29
|
+
/** RPC endpoint specs — the RPC round trip drives every method on them. */
|
|
72
30
|
rpc_endpoints: RpcEndpointsSuiteOption;
|
|
73
|
-
/**
|
|
74
|
-
* Role registry from `create_role_registry()`.
|
|
75
|
-
* When provided, the admin integration suite is included.
|
|
76
|
-
*/
|
|
77
|
-
roles?: RoleRegistry;
|
|
78
|
-
/**
|
|
79
|
-
* Path prefix where admin routes are mounted.
|
|
80
|
-
* Default `'/api/admin'`.
|
|
81
|
-
*/
|
|
82
|
-
admin_prefix?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Forwarded to `describe_standard_integration_tests` — overrides the
|
|
85
|
-
* default error-coverage threshold on the scoped REST surface. Set to
|
|
86
|
-
* `0` to skip the assertion entirely.
|
|
87
|
-
*/
|
|
88
|
-
error_coverage_min?: number;
|
|
89
31
|
/**
|
|
90
32
|
* Base URL the spawned backend is reachable at. Forwarded to
|
|
91
|
-
* `
|
|
92
|
-
*
|
|
33
|
+
* `describe_middleware_gate_tests`, whose probes write their request heads
|
|
34
|
+
* to the socket.
|
|
93
35
|
*/
|
|
94
36
|
base_url: string;
|
|
95
37
|
/**
|
|
96
|
-
* Forwarded to `
|
|
38
|
+
* Forwarded to `describe_middleware_gate_tests` — the backend's
|
|
97
39
|
* request-body cap on every counted route but the RPC endpoint, when it
|
|
98
40
|
* isn't the spine default.
|
|
99
41
|
*/
|
|
100
42
|
max_body_bytes?: number;
|
|
101
43
|
/**
|
|
102
|
-
* Forwarded to `
|
|
44
|
+
* Forwarded to `describe_middleware_gate_tests` — the backend's
|
|
103
45
|
* request-body cap on the RPC endpoint, when it isn't `max_body_bytes`.
|
|
104
46
|
*/
|
|
105
47
|
rpc_max_body_bytes?: number;
|
|
106
|
-
/**
|
|
107
|
-
* Forwarded to `describe_standard_integration_tests` — called with the
|
|
108
|
-
* declared error paths of its counted routes it never observed.
|
|
109
|
-
*/
|
|
110
|
-
check_uncovered_errors?: (uncovered: Array<UncoveredEntry>) => void;
|
|
111
48
|
/**
|
|
112
49
|
* Forwarded to `describe_round_trip_validation` as `skip_routes`
|
|
113
50
|
* (`'METHOD /path'` keys). For consumer REST routes whose responses
|
|
@@ -166,9 +103,8 @@ export interface StandardCrossProcessTestOptions {
|
|
|
166
103
|
}>>;
|
|
167
104
|
}
|
|
168
105
|
/**
|
|
169
|
-
* Run the
|
|
170
|
-
*
|
|
171
|
-
* module doc for the suites omitted from this bundle and why.
|
|
106
|
+
* Run the standard suites the transcript can't — the middleware-gate probes,
|
|
107
|
+
* round trip, RPC round trip, data exposure.
|
|
172
108
|
*/
|
|
173
|
-
export declare const
|
|
109
|
+
export declare const describe_standard_cross_tests: (options: StandardCrossTestOptions) => void;
|
|
174
110
|
//# sourceMappingURL=standard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/standard.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B
|
|
1
|
+
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/standard.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,O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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CACnF,CAAC;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,GAAI,SAAS,wBAAwB,KAAG,IAgCjF,CAAC"}
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
|
-
import {
|
|
3
|
-
import { describe_standard_admin_integration_tests } from '../admin_integration.js';
|
|
2
|
+
import { describe_middleware_gate_tests } from '../middleware_gate_probes.js';
|
|
4
3
|
import { describe_round_trip_validation } from '../round_trip.js';
|
|
5
4
|
import { describe_rpc_round_trip_tests } from '../rpc_round_trip.js';
|
|
6
5
|
import { describe_data_exposure_tests } from '../data_exposure.js';
|
|
7
6
|
/**
|
|
8
|
-
* Run the
|
|
9
|
-
*
|
|
10
|
-
* module doc for the suites omitted from this bundle and why.
|
|
7
|
+
* Run the standard suites the transcript can't — the middleware-gate probes,
|
|
8
|
+
* round trip, RPC round trip, data exposure.
|
|
11
9
|
*/
|
|
12
|
-
export const
|
|
13
|
-
|
|
10
|
+
export const describe_standard_cross_tests = (options) => {
|
|
11
|
+
describe_middleware_gate_tests({
|
|
14
12
|
setup_test: options.setup_test,
|
|
15
13
|
surface_source: options.surface_source,
|
|
16
|
-
capabilities: options.capabilities,
|
|
17
14
|
session_cookie_name: options.session_cookie_name,
|
|
18
15
|
rpc_endpoints: options.rpc_endpoints,
|
|
19
|
-
error_coverage_min: options.error_coverage_min,
|
|
20
16
|
base_url: options.base_url,
|
|
21
17
|
max_body_bytes: options.max_body_bytes,
|
|
22
|
-
rpc_max_body_bytes: options.rpc_max_body_bytes
|
|
23
|
-
check_uncovered_errors: options.check_uncovered_errors
|
|
18
|
+
rpc_max_body_bytes: options.rpc_max_body_bytes
|
|
24
19
|
});
|
|
25
20
|
describe_round_trip_validation({
|
|
26
21
|
setup_test: options.setup_test,
|
|
@@ -44,14 +39,4 @@ export const describe_standard_cross_process_tests = (options) => {
|
|
|
44
39
|
skip_routes: options.data_exposure_skip_routes,
|
|
45
40
|
param_values: options.param_values
|
|
46
41
|
});
|
|
47
|
-
if (options.roles) {
|
|
48
|
-
describe_standard_admin_integration_tests({
|
|
49
|
-
setup_test: options.setup_test,
|
|
50
|
-
surface_source: options.surface_source,
|
|
51
|
-
session_cookie_name: options.session_cookie_name,
|
|
52
|
-
roles: options.roles,
|
|
53
|
-
rpc_endpoints: options.rpc_endpoints,
|
|
54
|
-
admin_prefix: options.admin_prefix
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
42
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import '../assert_dev_env.js';
|
|
2
|
+
/**
|
|
3
|
+
* The standard auth suites against a spawned backend:
|
|
4
|
+
* `describe_standard_integration_tests`, and
|
|
5
|
+
* `describe_standard_admin_integration_tests` when the consumer supplies a
|
|
6
|
+
* `RoleRegistry`. Every request they send goes through the fixture
|
|
7
|
+
* transports, each test building its own fixture, so fuz_app's transcript
|
|
8
|
+
* differential runs them — the login, session, token and invite verbs each
|
|
9
|
+
* diffed request by request, and the database each test leaves.
|
|
10
|
+
*
|
|
11
|
+
* The rest of the standard suites — the middleware-gate probes, written to a
|
|
12
|
+
* raw socket, and the round trips and data exposure, which build fixtures
|
|
13
|
+
* outside a test — are `describe_standard_cross_tests` (`standard.ts`);
|
|
14
|
+
* `describe_standard_cross_process_tests` (`standard_bundle.ts`) runs both.
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
import type { RoleRegistry } from '../../auth/role_schema.js';
|
|
19
|
+
import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
20
|
+
import type { RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
21
|
+
import type { UncoveredEntry } from '../error_coverage.js';
|
|
22
|
+
import type { BackendCapabilities } from './capabilities.js';
|
|
23
|
+
import type { SetupTest } from './setup.js';
|
|
24
|
+
/** Configuration for `describe_standard_auth_cross_tests`. */
|
|
25
|
+
export interface StandardAuthCrossTestOptions {
|
|
26
|
+
/** Per-test fixture-producing function. */
|
|
27
|
+
setup_test: SetupTest;
|
|
28
|
+
/**
|
|
29
|
+
* App surface. Constructed in TS by the consumer; same shape for
|
|
30
|
+
* in-process and cross-process tests.
|
|
31
|
+
*/
|
|
32
|
+
surface_source: AppSurfaceSpec;
|
|
33
|
+
/**
|
|
34
|
+
* Backend capability declarations, read by the integration suite's gated
|
|
35
|
+
* cases.
|
|
36
|
+
*/
|
|
37
|
+
capabilities: BackendCapabilities;
|
|
38
|
+
/** The session cookie's name — read for the session cookie and the factory-form `rpc_endpoints` resolution. */
|
|
39
|
+
session_cookie_name: string;
|
|
40
|
+
/**
|
|
41
|
+
* RPC endpoint specs — required. The integration suite drives
|
|
42
|
+
* `account_verify`, `account_session_*` and `account_token_*` through the
|
|
43
|
+
* RPC surface, and the admin suite, when wired, the admin and role-grant
|
|
44
|
+
* verbs.
|
|
45
|
+
*/
|
|
46
|
+
rpc_endpoints: RpcEndpointsSuiteOption;
|
|
47
|
+
/**
|
|
48
|
+
* Role registry from `create_role_registry()`.
|
|
49
|
+
* When provided, the admin integration suite is included.
|
|
50
|
+
*/
|
|
51
|
+
roles?: RoleRegistry;
|
|
52
|
+
/**
|
|
53
|
+
* Path prefix where admin routes are mounted.
|
|
54
|
+
* Default `'/api/admin'`.
|
|
55
|
+
*/
|
|
56
|
+
admin_prefix?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Forwarded to `describe_standard_integration_tests` — overrides the
|
|
59
|
+
* default error-coverage threshold on the scoped REST surface. Set to
|
|
60
|
+
* `0` to skip the assertion entirely.
|
|
61
|
+
*/
|
|
62
|
+
error_coverage_min?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Forwarded to `describe_standard_integration_tests` — called with the
|
|
65
|
+
* declared error paths of its counted routes it never observed.
|
|
66
|
+
*/
|
|
67
|
+
check_uncovered_errors?: (uncovered: Array<UncoveredEntry>) => void;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Run the standard auth suites against a spawned backend — integration, and
|
|
71
|
+
* admin when `roles` is provided.
|
|
72
|
+
*/
|
|
73
|
+
export declare const describe_standard_auth_cross_tests: (options: StandardAuthCrossTestOptions) => void;
|
|
74
|
+
//# sourceMappingURL=standard_auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard_auth.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/standard_auth.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,8DAA8D;AAC9D,MAAM,WAAW,4BAA4B;IAC5C,2CAA2C;IAC3C,UAAU,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;;OAGG;IACH,YAAY,EAAE,mBAAmB,CAAC;IAClC,+GAA+G;IAC/G,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,sBAAsB,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACpE;AAED;;;GAGG;AACH,eAAO,MAAM,kCAAkC,GAAI,SAAS,4BAA4B,KAAG,IAoB1F,CAAC"}
|