@fuzdev/fuz_app 0.183.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 +538 -1223
- package/dist/actions/action_codegen.d.ts +1 -1
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +3 -2
- package/dist/actions/connection_closer.d.ts +11 -9
- package/dist/actions/connection_closer.d.ts.map +1 -1
- package/dist/actions/connection_closer.js +11 -9
- package/dist/actions/frontend_rpc_client.d.ts +1 -1
- package/dist/actions/register_action_ws.d.ts +21 -1
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/register_action_ws.js +2 -1
- package/dist/actions/ws_socket_session.d.ts +25 -4
- package/dist/actions/ws_socket_session.d.ts.map +1 -1
- package/dist/actions/ws_socket_session.js +81 -25
- package/dist/auth/CLAUDE.md +433 -1048
- package/dist/auth/account_queries.d.ts +1 -1
- package/dist/auth/account_queries.js +1 -1
- package/dist/auth/account_routes.d.ts +4 -5
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +8 -10
- package/dist/auth/admin_actions.d.ts.map +1 -1
- package/dist/auth/admin_actions.js +10 -11
- package/dist/auth/api_token.d.ts +20 -3
- package/dist/auth/api_token.d.ts.map +1 -1
- package/dist/auth/api_token.js +28 -9
- package/dist/auth/api_token_queries.d.ts +2 -2
- package/dist/auth/api_token_queries.js +2 -2
- 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/audit_log_schema.d.ts +15 -9
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +1 -2
- package/dist/auth/auth_guard_resolver.d.ts +1 -1
- package/dist/auth/auth_guard_resolver.js +1 -1
- package/dist/auth/bearer_auth.d.ts +2 -5
- package/dist/auth/bearer_auth.d.ts.map +1 -1
- package/dist/auth/bearer_auth.js +4 -13
- package/dist/auth/bootstrap_account.d.ts +13 -15
- package/dist/auth/bootstrap_account.d.ts.map +1 -1
- package/dist/auth/bootstrap_account.js +9 -11
- package/dist/auth/bootstrap_routes.d.ts +20 -21
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +21 -19
- package/dist/auth/bootstrap_token_store.d.ts +3 -4
- package/dist/auth/bootstrap_token_store.d.ts.map +1 -1
- package/dist/auth/bootstrap_token_store.js +1 -1
- 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/auth/daemon_token.d.ts +5 -1
- package/dist/auth/daemon_token.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.d.ts +12 -8
- package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.js +15 -21
- package/dist/auth/deps.d.ts +11 -0
- package/dist/auth/deps.d.ts.map +1 -1
- package/dist/auth/invite_queries.d.ts +51 -3
- package/dist/auth/invite_queries.d.ts.map +1 -1
- package/dist/auth/invite_queries.js +81 -6
- package/dist/auth/invite_schema.d.ts +2 -1
- package/dist/auth/invite_schema.d.ts.map +1 -1
- package/dist/auth/middleware.d.ts +2 -3
- package/dist/auth/middleware.d.ts.map +1 -1
- package/dist/auth/middleware.js +3 -3
- package/dist/auth/request_context.d.ts +3 -3
- package/dist/auth/request_context.js +3 -3
- package/dist/auth/role_grant_offer_actions.d.ts +2 -2
- package/dist/auth/role_grant_offer_actions.js +2 -2
- package/dist/auth/session_cookie.d.ts +82 -174
- package/dist/auth/session_cookie.d.ts.map +1 -1
- package/dist/auth/session_cookie.js +80 -130
- package/dist/auth/session_middleware.d.ts +8 -17
- package/dist/auth/session_middleware.d.ts.map +1 -1
- package/dist/auth/session_middleware.js +14 -23
- package/dist/auth/session_queries.d.ts +9 -14
- package/dist/auth/session_queries.d.ts.map +1 -1
- package/dist/auth/session_queries.js +8 -9
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +4 -6
- package/dist/db/CLAUDE.md +5 -3
- package/dist/dev/setup.d.ts +3 -1
- package/dist/dev/setup.d.ts.map +1 -1
- package/dist/dev/setup.js +3 -1
- package/dist/http/CLAUDE.md +315 -768
- package/dist/http/db_routes.d.ts +1 -1
- package/dist/http/db_routes.js +1 -1
- package/dist/http/origin.d.ts +7 -8
- package/dist/http/origin.d.ts.map +1 -1
- package/dist/http/origin.js +7 -8
- package/dist/http/pending_effects.d.ts +82 -4
- package/dist/http/pending_effects.d.ts.map +1 -1
- package/dist/http/pending_effects.js +82 -4
- package/dist/http/route_result.d.ts +1 -1
- package/dist/http/route_spec.d.ts +17 -14
- 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 +6 -25
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +4 -25
- package/dist/realtime/sse_constants.d.ts +1 -1
- package/dist/realtime/sse_constants.js +1 -1
- package/dist/server/app_backend.d.ts +4 -5
- package/dist/server/app_backend.d.ts.map +1 -1
- package/dist/server/app_backend.js +3 -1
- package/dist/server/app_server.d.ts +87 -76
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +111 -91
- package/dist/server/app_server_context.d.ts +1 -2
- package/dist/server/app_server_context.d.ts.map +1 -1
- package/dist/server/env.js +2 -2
- 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 +89 -57
- package/dist/testing/admin_integration.d.ts +4 -5
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +39 -23
- package/dist/testing/app_server.d.ts +3 -8
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/app_server.js +10 -9
- package/dist/testing/attack_surface.d.ts +1 -1
- package/dist/testing/attack_surface.d.ts.map +1 -1
- package/dist/testing/audit_completeness.d.ts +2 -3
- package/dist/testing/audit_completeness.d.ts.map +1 -1
- package/dist/testing/audit_completeness.js +1 -1
- 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/capability_mounts.d.ts.map +1 -1
- package/dist/testing/cross_backend/capability_mounts.js +16 -11
- package/dist/testing/cross_backend/conformance_table.d.ts +5 -6
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +4 -4
- package/dist/testing/cross_backend/cookie_attributes.js +1 -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/default_backend_configs.d.ts +3 -3
- package/dist/testing/cross_backend/default_spine_surface.d.ts +0 -6
- package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_spine_surface.js +4 -9
- package/dist/testing/cross_backend/differential.d.ts +2 -3
- package/dist/testing/cross_backend/differential.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential.js +1 -1
- package/dist/testing/cross_backend/full_spine_mount.d.ts +1 -42
- package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
- package/dist/testing/cross_backend/full_spine_mount.js +45 -4
- package/dist/testing/cross_backend/in_process_setup.d.ts +7 -8
- package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/in_process_setup.js +10 -13
- 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/rust_spine_consumer_surface.d.ts +3 -4
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.js +2 -2
- package/dist/testing/cross_backend/setup.d.ts +1 -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 +18 -16
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +38 -18
- package/dist/testing/cross_backend/standard.d.ts +19 -84
- package/dist/testing/cross_backend/standard.d.ts.map +1 -1
- package/dist/testing/cross_backend/standard.js +8 -23
- 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_credential_read.d.ts +10 -11
- package/dist/testing/cross_backend/testing_credential_read.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_credential_read.js +12 -12
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +46 -30
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +52 -31
- 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 +22 -7
- 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/daemon_token_rotation.d.ts.map +1 -1
- package/dist/testing/daemon_token_rotation.js +2 -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 +6 -23
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +53 -83
- 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/rate_limiting.d.ts +2 -3
- package/dist/testing/rate_limiting.d.ts.map +1 -1
- package/dist/testing/rate_limiting.js +3 -3
- package/dist/testing/rpc_helpers.d.ts +1 -2
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +3 -3
- package/dist/testing/rpc_round_trip.d.ts +2 -3
- package/dist/testing/rpc_round_trip.d.ts.map +1 -1
- package/dist/testing/rpc_round_trip.js +1 -1
- package/dist/testing/sse_round_trip.d.ts +2 -3
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +2 -2
- package/dist/testing/stubs.d.ts +5 -6
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +10 -8
- package/dist/testing/test_app.d.ts +8 -5
- package/dist/testing/test_app.d.ts.map +1 -1
- package/dist/testing/test_app.js +7 -7
- package/dist/testing/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/ws_round_trip.js +3 -0
- package/dist/ui/ui_format.d.ts.map +1 -1
- package/dist/ui/ui_format.js +1 -2
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
2
|
import { type RoleRegistry } from '../../auth/role_schema.js';
|
|
3
|
-
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
4
3
|
import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
5
4
|
import { type RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
6
5
|
import type { RpcSuccessFixtures } from '../rpc_round_trip.js';
|
|
@@ -40,7 +39,8 @@ import { type CrossProcessSetupOptions, type ReconstructedBootstrappedBackendHan
|
|
|
40
39
|
import { type SimpleRequestCrossTestOptions } from './simple_request.js';
|
|
41
40
|
import { type TestingBackdoorMethod } from './spine_surface_constants.js';
|
|
42
41
|
import { type CrossProcessSseTestOptions } from './sse_round_trip.js';
|
|
43
|
-
import { type
|
|
42
|
+
import { type StandardCrossTestOptions } from './standard.js';
|
|
43
|
+
import { type StandardAuthCrossTestOptions } from './standard_auth.js';
|
|
44
44
|
import { type TestingBackdoorCrossTestOptions } from './testing_backdoor.js';
|
|
45
45
|
import { type TokenLifetimeCrossTestOptions } from './token_lifetime.js';
|
|
46
46
|
import { type TokenScopeSurfaceCrossTestOptions } from './token_scope_surface.js';
|
|
@@ -54,15 +54,16 @@ import { type CrossProcessWsTestOptions } from './ws_round_trip.js';
|
|
|
54
54
|
/**
|
|
55
55
|
* Every shipped suite `describe_spine_cross_suites` runs, each named by its
|
|
56
56
|
* module under `testing/cross_backend/` (`ws_round_trip` is
|
|
57
|
-
* `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
|
|
58
59
|
* guard test holds it, with `STANDALONE_CROSS_SUITES`, to every module that
|
|
59
60
|
* exports a `describe_*` suite, so a new suite fails until it is registered.
|
|
60
61
|
*/
|
|
61
|
-
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"];
|
|
62
63
|
/** A shipped single-backend cross suite, named by its module. */
|
|
63
64
|
export type SuiteName = (typeof SUITE_NAMES)[number];
|
|
64
65
|
/** A shipped suite module `describe_spine_cross_suites` leaves out. */
|
|
65
|
-
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';
|
|
66
67
|
/**
|
|
67
68
|
* The shipped suite modules `describe_spine_cross_suites` leaves out, each with
|
|
68
69
|
* why. Their entry points stay as they are; a consumer calls them beside the
|
|
@@ -124,7 +125,8 @@ export interface SuiteOptionsMap {
|
|
|
124
125
|
session_cookie_codec: SessionCookieCodecCrossTestOptions;
|
|
125
126
|
simple_request: SimpleRequestCrossTestOptions;
|
|
126
127
|
sse_round_trip: CrossProcessSseTestOptions;
|
|
127
|
-
standard:
|
|
128
|
+
standard: StandardCrossTestOptions;
|
|
129
|
+
standard_auth: StandardAuthCrossTestOptions;
|
|
128
130
|
testing_backdoor: TestingBackdoorCrossTestOptions;
|
|
129
131
|
token_lifetime: TokenLifetimeCrossTestOptions;
|
|
130
132
|
token_scope_surface: TokenScopeSurfaceCrossTestOptions;
|
|
@@ -196,11 +198,11 @@ export interface SpineSuiteRoles {
|
|
|
196
198
|
}
|
|
197
199
|
/** Options for `describe_spine_cross_suites`. */
|
|
198
200
|
export interface SpineCrossSuitesOptions {
|
|
199
|
-
/** The declared surface —
|
|
201
|
+
/** The declared surface — `standard_auth`, `standard` and `rpc_adversarial` enumerate it. */
|
|
200
202
|
readonly surface_source: AppSurfaceSpec;
|
|
201
|
-
/** The
|
|
202
|
-
readonly
|
|
203
|
-
/** The backend's RPC endpoints, for
|
|
203
|
+
/** The session cookie's name, for `standard_auth` and `standard`. */
|
|
204
|
+
readonly session_cookie_name: string;
|
|
205
|
+
/** The backend's RPC endpoints, for `standard_auth` and `standard`. */
|
|
204
206
|
readonly rpc_endpoints: RpcEndpointsSuiteOption;
|
|
205
207
|
/**
|
|
206
208
|
* The RPC endpoints the backend live-mounts, for the methods it keeps off
|
|
@@ -210,7 +212,7 @@ export interface SpineCrossSuitesOptions {
|
|
|
210
212
|
* still runs once, from the declared surface.
|
|
211
213
|
*/
|
|
212
214
|
readonly live_rpc_endpoints?: RpcEndpointsSuiteOption;
|
|
213
|
-
/** The backend's role registry; given,
|
|
215
|
+
/** The backend's role registry; given, `standard_auth` runs its admin suite. */
|
|
214
216
|
readonly roles?: RoleRegistry;
|
|
215
217
|
/**
|
|
216
218
|
* Setup options every suite's `setup_test` starts from — a signup path the
|
|
@@ -261,8 +263,8 @@ export interface SpineCrossSuitesOptions {
|
|
|
261
263
|
* The backend's request-body cap on `rpc_path`, in bytes, when it isn't the
|
|
262
264
|
* spine default (`SPINE_BODY_LIMIT_DEFAULT_BYTES`): the boundary
|
|
263
265
|
* `body_size`, `body_size_smuggling`, `transport_composition`'s RPC
|
|
264
|
-
* over-cap row and
|
|
265
|
-
*
|
|
266
|
+
* over-cap row and `standard`'s body-limit probe of the RPC endpoint
|
|
267
|
+
* probe.
|
|
266
268
|
*/
|
|
267
269
|
readonly rpc_max_body_bytes?: number;
|
|
268
270
|
/**
|
|
@@ -271,12 +273,12 @@ export interface SpineCrossSuitesOptions {
|
|
|
271
273
|
* `ws_round_trip`'s oversized-message case sends past.
|
|
272
274
|
*/
|
|
273
275
|
readonly ws_max_message_bytes?: number;
|
|
274
|
-
/** Forwarded to
|
|
276
|
+
/** Forwarded to `standard` (`StandardCrossTestOptions.rpc_success_fixtures`). */
|
|
275
277
|
readonly rpc_success_fixtures?: RpcSuccessFixtures;
|
|
276
|
-
/** Forwarded to
|
|
278
|
+
/** Forwarded to `standard` (`StandardCrossTestOptions.rpc_skip_methods`). */
|
|
277
279
|
readonly rpc_skip_methods?: Array<string>;
|
|
278
280
|
/**
|
|
279
|
-
* Forwarded to
|
|
281
|
+
* Forwarded to `standard` (`StandardCrossTestOptions.rpc_input_overrides`)
|
|
280
282
|
* and to `rpc_adversarial` (`RpcAdversarialCrossTestOptions.input_overrides`),
|
|
281
283
|
* where each override seeds the method's params cases. Those cases are sent
|
|
282
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":[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;;;;;;;;;;;;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.
|
|
@@ -55,7 +55,7 @@ import '../assert_dev_env.js';
|
|
|
55
55
|
* seeds the holder each needs.
|
|
56
56
|
*
|
|
57
57
|
* **Inputs the handle doesn't carry.** The declared surface (`surface_source`,
|
|
58
|
-
* `
|
|
58
|
+
* `session_cookie_name`, `rpc_endpoints`, `roles`) is a required option. Paths and
|
|
59
59
|
* roles that name what the reference spines mount (the role-gated WS endpoint
|
|
60
60
|
* and its roles) default to the `SPINE_*` constants, and a suite whose
|
|
61
61
|
* capability flag is off never reaches them. Anything else a suite needs comes
|
|
@@ -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
|
|
@@ -696,7 +700,7 @@ const SUITE_ENTRIES = {
|
|
|
696
700
|
setup_test: c.setup(),
|
|
697
701
|
surface_source: c.options.surface_source,
|
|
698
702
|
live_rpc_endpoints: c.options.live_rpc_endpoints &&
|
|
699
|
-
resolve_rpc_endpoints_for_setup(c.options.live_rpc_endpoints, c.options.
|
|
703
|
+
resolve_rpc_endpoints_for_setup(c.options.live_rpc_endpoints, c.options.session_cookie_name),
|
|
700
704
|
rpc_path: c.config.rpc_path,
|
|
701
705
|
input_overrides: c.options.rpc_input_overrides
|
|
702
706
|
}),
|
|
@@ -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
|
-
|
|
758
|
-
session_options: c.options.session_options,
|
|
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,
|
|
@@ -981,7 +1001,7 @@ const validate_spine_cross_suites_options = (options, declared, backdoor_skips,
|
|
|
981
1001
|
methods.add(method.name);
|
|
982
1002
|
}
|
|
983
1003
|
if (options.live_rpc_endpoints) {
|
|
984
|
-
const live = resolve_rpc_endpoints_for_setup(options.live_rpc_endpoints, options.
|
|
1004
|
+
const live = resolve_rpc_endpoints_for_setup(options.live_rpc_endpoints, options.session_cookie_name);
|
|
985
1005
|
for (const endpoint of live) {
|
|
986
1006
|
for (const action of endpoint.actions)
|
|
987
1007
|
methods.add(action.spec.method);
|
|
@@ -1,54 +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 { SessionOptions } from '../../auth/session_cookie.js';
|
|
37
|
-
import type { RoleRegistry } from '../../auth/role_schema.js';
|
|
38
13
|
import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
39
14
|
import { type RpcSuccessFixtures } from '../rpc_round_trip.js';
|
|
40
15
|
import type { RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
41
|
-
import type { BackendCapabilities } from './capabilities.js';
|
|
42
|
-
import type { UncoveredEntry } from '../error_coverage.js';
|
|
43
16
|
import type { SetupTest, TestFixture } from './setup.js';
|
|
44
17
|
import type { RouteParamValues } from '../schema_generators.js';
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
* The in-process suites' shared options minus their in-process-only knobs
|
|
49
|
-
* (`create_route_specs`, `rate_limiting_app_options`).
|
|
50
|
-
*/
|
|
51
|
-
export interface StandardCrossProcessTestOptions {
|
|
18
|
+
/** Configuration for `describe_standard_cross_tests`. */
|
|
19
|
+
export interface StandardCrossTestOptions {
|
|
52
20
|
/** Per-test fixture-producing function. */
|
|
53
21
|
setup_test: SetupTest;
|
|
54
22
|
/**
|
|
@@ -56,59 +24,27 @@ export interface StandardCrossProcessTestOptions {
|
|
|
56
24
|
* in-process and cross-process tests.
|
|
57
25
|
*/
|
|
58
26
|
surface_source: AppSurfaceSpec;
|
|
59
|
-
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* suites in the bundle read no flags and take no capability field.
|
|
63
|
-
*/
|
|
64
|
-
capabilities: BackendCapabilities;
|
|
65
|
-
/** Session config — needed for cookie_name + factory-form rpc_endpoints resolution. */
|
|
66
|
-
session_options: SessionOptions<string>;
|
|
67
|
-
/**
|
|
68
|
-
* RPC endpoint specs — required. The standard integration tests drive
|
|
69
|
-
* `account_verify`, `account_session_*`, `account_token_*` through the
|
|
70
|
-
* RPC surface (and admin tests, when wired, drive role_grant grant/revoke
|
|
71
|
-
* through it too).
|
|
72
|
-
*/
|
|
27
|
+
/** The session cookie's name — read for the factory-form `rpc_endpoints` resolution. */
|
|
28
|
+
session_cookie_name: string;
|
|
29
|
+
/** RPC endpoint specs — the RPC round trip drives every method on them. */
|
|
73
30
|
rpc_endpoints: RpcEndpointsSuiteOption;
|
|
74
|
-
/**
|
|
75
|
-
* Role registry from `create_role_registry()`.
|
|
76
|
-
* When provided, the admin integration suite is included.
|
|
77
|
-
*/
|
|
78
|
-
roles?: RoleRegistry;
|
|
79
|
-
/**
|
|
80
|
-
* Path prefix where admin routes are mounted.
|
|
81
|
-
* Default `'/api/admin'`.
|
|
82
|
-
*/
|
|
83
|
-
admin_prefix?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Forwarded to `describe_standard_integration_tests` — overrides the
|
|
86
|
-
* default error-coverage threshold on the scoped REST surface. Set to
|
|
87
|
-
* `0` to skip the assertion entirely.
|
|
88
|
-
*/
|
|
89
|
-
error_coverage_min?: number;
|
|
90
31
|
/**
|
|
91
32
|
* Base URL the spawned backend is reachable at. Forwarded to
|
|
92
|
-
* `
|
|
93
|
-
*
|
|
33
|
+
* `describe_middleware_gate_tests`, whose probes write their request heads
|
|
34
|
+
* to the socket.
|
|
94
35
|
*/
|
|
95
36
|
base_url: string;
|
|
96
37
|
/**
|
|
97
|
-
* Forwarded to `
|
|
38
|
+
* Forwarded to `describe_middleware_gate_tests` — the backend's
|
|
98
39
|
* request-body cap on every counted route but the RPC endpoint, when it
|
|
99
40
|
* isn't the spine default.
|
|
100
41
|
*/
|
|
101
42
|
max_body_bytes?: number;
|
|
102
43
|
/**
|
|
103
|
-
* Forwarded to `
|
|
44
|
+
* Forwarded to `describe_middleware_gate_tests` — the backend's
|
|
104
45
|
* request-body cap on the RPC endpoint, when it isn't `max_body_bytes`.
|
|
105
46
|
*/
|
|
106
47
|
rpc_max_body_bytes?: number;
|
|
107
|
-
/**
|
|
108
|
-
* Forwarded to `describe_standard_integration_tests` — called with the
|
|
109
|
-
* declared error paths of its counted routes it never observed.
|
|
110
|
-
*/
|
|
111
|
-
check_uncovered_errors?: (uncovered: Array<UncoveredEntry>) => void;
|
|
112
48
|
/**
|
|
113
49
|
* Forwarded to `describe_round_trip_validation` as `skip_routes`
|
|
114
50
|
* (`'METHOD /path'` keys). For consumer REST routes whose responses
|
|
@@ -167,9 +103,8 @@ export interface StandardCrossProcessTestOptions {
|
|
|
167
103
|
}>>;
|
|
168
104
|
}
|
|
169
105
|
/**
|
|
170
|
-
* Run the
|
|
171
|
-
*
|
|
172
|
-
* 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.
|
|
173
108
|
*/
|
|
174
|
-
export declare const
|
|
109
|
+
export declare const describe_standard_cross_tests: (options: StandardCrossTestOptions) => void;
|
|
175
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,OAAO,EAAiC,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,yDAAyD;AACzD,MAAM,WAAW,wBAAwB;IACxC,2CAA2C;IAC3C,UAAU,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B,wFAAwF;IACxF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,2EAA2E;IAC3E,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1C;;;;;OAKG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC;;;;;;;OAOG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3D;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,GAAG,CAC1B,MAAM,EACN,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,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
|
-
|
|
17
|
-
session_options: options.session_options,
|
|
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,
|
|
@@ -32,7 +27,7 @@ export const describe_standard_cross_process_tests = (options) => {
|
|
|
32
27
|
describe_rpc_round_trip_tests({
|
|
33
28
|
setup_test: options.setup_test,
|
|
34
29
|
surface_source: options.surface_source,
|
|
35
|
-
|
|
30
|
+
session_cookie_name: options.session_cookie_name,
|
|
36
31
|
rpc_endpoints: options.rpc_endpoints,
|
|
37
32
|
skip_methods: options.rpc_skip_methods,
|
|
38
33
|
input_overrides: options.rpc_input_overrides,
|
|
@@ -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_options: options.session_options,
|
|
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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import '../assert_dev_env.js';
|
|
2
|
+
import { describe_standard_integration_tests } from '../integration.js';
|
|
3
|
+
import { describe_standard_admin_integration_tests } from '../admin_integration.js';
|
|
4
|
+
/**
|
|
5
|
+
* Run the standard auth suites against a spawned backend — integration, and
|
|
6
|
+
* admin when `roles` is provided.
|
|
7
|
+
*/
|
|
8
|
+
export const describe_standard_auth_cross_tests = (options) => {
|
|
9
|
+
describe_standard_integration_tests({
|
|
10
|
+
setup_test: options.setup_test,
|
|
11
|
+
surface_source: options.surface_source,
|
|
12
|
+
capabilities: options.capabilities,
|
|
13
|
+
session_cookie_name: options.session_cookie_name,
|
|
14
|
+
rpc_endpoints: options.rpc_endpoints,
|
|
15
|
+
error_coverage_min: options.error_coverage_min,
|
|
16
|
+
check_uncovered_errors: options.check_uncovered_errors
|
|
17
|
+
});
|
|
18
|
+
if (options.roles) {
|
|
19
|
+
describe_standard_admin_integration_tests({
|
|
20
|
+
setup_test: options.setup_test,
|
|
21
|
+
surface_source: options.surface_source,
|
|
22
|
+
session_cookie_name: options.session_cookie_name,
|
|
23
|
+
roles: options.roles,
|
|
24
|
+
rpc_endpoints: options.rpc_endpoints,
|
|
25
|
+
admin_prefix: options.admin_prefix
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|