@fuzdev/fuz_app 0.183.0 → 0.184.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 +535 -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 +14 -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 +9 -1
- package/dist/actions/ws_socket_session.d.ts.map +1 -1
- package/dist/actions/ws_socket_session.js +43 -19
- package/dist/auth/CLAUDE.md +430 -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_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/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 +78 -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 +14 -11
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/realtime/sse.d.ts +4 -23
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +4 -25
- 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 +53 -30
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +81 -53
- 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/testing/CLAUDE.md +17 -17
- package/dist/testing/admin_integration.d.ts +2 -3
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +3 -3
- 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/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/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 +6 -7
- package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/in_process_setup.js +9 -12
- 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/spine_suites.d.ts +2 -3
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +5 -5
- package/dist/testing/cross_backend/standard.d.ts +2 -3
- package/dist/testing/cross_backend/standard.d.ts.map +1 -1
- package/dist/testing/cross_backend/standard.js +3 -3
- 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 +35 -30
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +39 -31
- package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_core.js +2 -3
- package/dist/testing/daemon_token_rotation.d.ts.map +1 -1
- package/dist/testing/daemon_token_rotation.js +2 -3
- package/dist/testing/integration.d.ts +2 -3
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +4 -4
- 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 +5 -3
- package/dist/testing/test_app.d.ts.map +1 -1
- package/dist/testing/test_app.js +2 -3
- 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
|
@@ -91,8 +91,8 @@ export interface MakeDefaultTsBackendConfigOptions {
|
|
|
91
91
|
*/
|
|
92
92
|
readonly port_env_var?: string;
|
|
93
93
|
/**
|
|
94
|
-
* Session cookie name the binary's `
|
|
95
|
-
* Defaults to `'fuz_session'`. Must match the consumer's session
|
|
94
|
+
* Session cookie name the binary's server is assembled with (`session_cookie_name`).
|
|
95
|
+
* Defaults to `'fuz_session'`. Must match the consumer's session cookie name
|
|
96
96
|
* — the harness threads the `_testing_reset`-returned keeper cookie into
|
|
97
97
|
* its jar under this name, so a mismatch surfaces as 401s on the
|
|
98
98
|
* `create_account` path (e.g. fuz_forge uses `'fuz_forge_session'`).
|
|
@@ -155,7 +155,7 @@ export interface MakeDefaultRustBackendConfigOptions {
|
|
|
155
155
|
readonly rust_log?: string;
|
|
156
156
|
/**
|
|
157
157
|
* Session cookie name the binary uses. Defaults to `'fuz_session'`.
|
|
158
|
-
* Must match the consumer's session
|
|
158
|
+
* Must match the consumer's session cookie name (see the TS builder's note).
|
|
159
159
|
*/
|
|
160
160
|
readonly cookie_name?: string;
|
|
161
161
|
/**
|
|
@@ -18,15 +18,9 @@ import '../assert_dev_env.js';
|
|
|
18
18
|
*/
|
|
19
19
|
import type { Logger } from '@fuzdev/fuz_util/log.ts';
|
|
20
20
|
import { type RoleRegistry } from '../../auth/role_schema.js';
|
|
21
|
-
import { type SessionOptions } from '../../auth/session_cookie.js';
|
|
22
21
|
import { type RouteSpec } from '../../http/route_spec.js';
|
|
23
22
|
import type { AppSurfaceSpec, RpcEndpointSpec } from '../../http/surface.js';
|
|
24
23
|
import type { AppServerContext } from '../../server/app_server_context.js';
|
|
25
|
-
/**
|
|
26
|
-
* Session config — cookie name matches the binary's issued session cookie
|
|
27
|
-
* (`fuz_session`) so cookie-attribute assertions + jar extraction line up.
|
|
28
|
-
*/
|
|
29
|
-
export declare const spine_session_options: SessionOptions<string>;
|
|
30
24
|
/**
|
|
31
25
|
* The spine's closed role registry: built-ins plus two app roles —
|
|
32
26
|
* `SPINE_CELL_EDITOR_ROLE` (no grant path; the role-shaped-`cell_grant`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default_spine_surface.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/default_spine_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"default_spine_surface.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/default_spine_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAKtD,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKpF,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAgB3E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,YAGxB,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAI,KAAK,gBAAgB,KAAG,KAAK,CAAC,eAAe,CAKhF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GAAI,KAAK,gBAAgB,KAAG,KAAK,CAAC,SAAS,CAgC/E,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B,GAAI,MAAM,MAAM,KAAG,SAC+B,CAAC;AAE7F;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,QAAO,cAS1C,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
2
|
import { create_account_route_specs } from '../../auth/account_routes.js';
|
|
3
|
+
import { SESSION_COOKIE_NAME } from '../../auth/session_cookie.js';
|
|
3
4
|
import { create_audit_log_route_specs } from '../../auth/audit_log_routes.js';
|
|
4
5
|
import { create_role_registry } from '../../auth/role_schema.js';
|
|
5
6
|
import { GRANT_PATH_ADMIN } from '../../auth/grant_path_schema.js';
|
|
6
|
-
import { create_session_config } from '../../auth/session_cookie.js';
|
|
7
7
|
import { create_signup_route_specs } from '../../auth/signup_routes.js';
|
|
8
8
|
import { create_standard_rpc_actions } from '../../auth/standard_rpc_actions.js';
|
|
9
9
|
import { create_ready_route_spec, load_expected_schema } from '../../http/common_routes.js';
|
|
@@ -15,11 +15,6 @@ import { create_test_app_surface_spec } from '../stubs.js';
|
|
|
15
15
|
// (→ `audit_log_routes` → `hono/streaming`). Import only the constants this
|
|
16
16
|
// module uses internally; callers that need a bare constant reach for the leaf.
|
|
17
17
|
import { SPINE_ACCOUNT_PATH_PREFIX, SPINE_CELL_EDITOR_ROLE, SPINE_EXPECTED_SCHEMA_URL, SPINE_PARTICIPANT_ROLE, SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
18
|
-
/**
|
|
19
|
-
* Session config — cookie name matches the binary's issued session cookie
|
|
20
|
-
* (`fuz_session`) so cookie-attribute assertions + jar extraction line up.
|
|
21
|
-
*/
|
|
22
|
-
export const spine_session_options = create_session_config('fuz_session');
|
|
23
18
|
/**
|
|
24
19
|
* The spine's closed role registry: built-ins plus two app roles —
|
|
25
20
|
* `SPINE_CELL_EDITOR_ROLE` (no grant path; the role-shaped-`cell_grant`
|
|
@@ -66,7 +61,7 @@ export const spine_rpc_endpoints = (ctx) => [
|
|
|
66
61
|
export const create_spine_route_specs = (ctx) => [
|
|
67
62
|
...prefix_route_specs(SPINE_ACCOUNT_PATH_PREFIX, [
|
|
68
63
|
...create_account_route_specs(ctx.deps, {
|
|
69
|
-
|
|
64
|
+
session_cookie_name: SESSION_COOKIE_NAME,
|
|
70
65
|
// Honor the limiters the server was assembled with (on `AppServerContext`
|
|
71
66
|
// per the `login_ip_rate_limiter` / `login_account_rate_limiter` TSDoc)
|
|
72
67
|
// rather than hardcoding `null`. The standard spine binary passes `null`
|
|
@@ -81,7 +76,7 @@ export const create_spine_route_specs = (ctx) => [
|
|
|
81
76
|
bootstrap_status: ctx.bootstrap_status
|
|
82
77
|
}),
|
|
83
78
|
...create_signup_route_specs(ctx.deps, {
|
|
84
|
-
|
|
79
|
+
session_cookie_name: SESSION_COOKIE_NAME,
|
|
85
80
|
signup_ip_rate_limiter: null,
|
|
86
81
|
signup_account_rate_limiter: null,
|
|
87
82
|
// Disable the denial floor so the identity-parity suite's accepted
|
|
@@ -117,7 +112,7 @@ export const create_spine_ready_route_spec = (log) => create_ready_route_spec({
|
|
|
117
112
|
* 409 against the route's declared error schema.
|
|
118
113
|
*/
|
|
119
114
|
export const create_spine_surface_spec = () => create_test_app_surface_spec({
|
|
120
|
-
|
|
115
|
+
session_cookie_name: SESSION_COOKIE_NAME,
|
|
121
116
|
create_route_specs: create_spine_route_specs,
|
|
122
117
|
rpc_endpoints: spine_rpc_endpoints,
|
|
123
118
|
bootstrap: { mode: 'surface_only' },
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
2
|
import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
3
|
-
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
4
3
|
import type { RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
5
4
|
import type { ConformanceCase } from './conformance_case.js';
|
|
6
5
|
import type { ConformancePrincipalConfig } from './conformance_principal.js';
|
|
@@ -108,8 +107,8 @@ export interface DifferentialConformanceOptions {
|
|
|
108
107
|
* (`resolve_conformance_rpc_endpoints`).
|
|
109
108
|
*/
|
|
110
109
|
readonly live_rpc_endpoints?: RpcEndpointsSuiteOption;
|
|
111
|
-
/**
|
|
112
|
-
readonly
|
|
110
|
+
/** The session cookie's name — needed to resolve the `rpc_endpoints` factory form. */
|
|
111
|
+
readonly session_cookie_name: string;
|
|
113
112
|
/** Maps the `role_holder` / `wrong_role` principals to seeded usernames. */
|
|
114
113
|
readonly principals?: ConformancePrincipalConfig;
|
|
115
114
|
/** The tracked divergences these cases may show. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"differential.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/differential.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA6D9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file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B,GACzC,OAAO,aAAa,CAAC,eAAe,CAAC,EACrC,QAAQ,aAAa,CAAC,eAAe,CAAC,KACpC,KAAK,CAAC,MAAM,CA0Bd,CAAC;AA6BF;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,8BAA8B,KACrC,IA4HF,CAAC"}
|
|
@@ -160,7 +160,7 @@ export const describe_differential_conformance_tests = (options) => {
|
|
|
160
160
|
resolved_rpc_endpoints,
|
|
161
161
|
request_headers: DIFFERENTIAL_REQUEST_HEADERS,
|
|
162
162
|
...(backend.ws && { ws: backend.ws })
|
|
163
|
-
}), options.
|
|
163
|
+
}), options.session_cookie_name);
|
|
164
164
|
const db_state = backend.db_state && mark ? await backend.db_state.read(mark) : null;
|
|
165
165
|
return { response, db_state };
|
|
166
166
|
};
|
|
@@ -1,45 +1,4 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
|
-
/**
|
|
3
|
-
* The **full** live RPC mount for fuz_app's own spine test binary — the
|
|
4
|
-
* complete action set `testing_spine_server.ts` exposes on a single RPC
|
|
5
|
-
* endpoint, in one place.
|
|
6
|
-
*
|
|
7
|
-
* Where `default_spine_surface.ts` defines the **declared** surface
|
|
8
|
-
* (`create_spine_surface_spec` / `spine_rpc_endpoints` — the
|
|
9
|
-
* `create_standard_rpc_actions` bundle the spec-derived suites
|
|
10
|
-
* auto-enumerate), this module defines its superset: the standard bundle
|
|
11
|
-
* **plus** the families the binary live-mounts but keeps off the declared
|
|
12
|
-
* surface —
|
|
13
|
-
*
|
|
14
|
-
* - the `_testing_*` daemon-token backdoors (`create_testing_actions`),
|
|
15
|
-
* - the full cell verb set (CRUD + grant + field + item + audit),
|
|
16
|
-
* - the opt-in `actor_lookup` / `actor_search` resolvers,
|
|
17
|
-
* - the `_testing_origin_check` probe the origin conformance table drives,
|
|
18
|
-
* - the `_testing_credential_read` probe the credential conformance table drives,
|
|
19
|
-
* - the `_testing_shorten_credential_expiry` seam the credential-deadline
|
|
20
|
-
* suite drives,
|
|
21
|
-
* - the `_testing_room_evict` seam the rooms suite drives, over the room
|
|
22
|
-
* registry the WebSocket-only room verbs run on,
|
|
23
|
-
* - the `_testing_action_manifest` backdoor, appended last (it dumps the live
|
|
24
|
-
* method set for the cross-impl manifest-parity gate, so it must enumerate
|
|
25
|
-
* every method above it — and the room verbs, as `transport: 'ws'`).
|
|
26
|
-
*
|
|
27
|
-
* Single-sourcing the mount here lets the binary, the in-process parity
|
|
28
|
-
* setup, and the `spine_method_coverage` reconciliation test all build the
|
|
29
|
-
* same list — so a method can never be mounted in one place and forgotten
|
|
30
|
-
* in another.
|
|
31
|
-
*
|
|
32
|
-
* The binary's WS endpoint serves the same list: `build_full_spine_mount`
|
|
33
|
-
* builds it once and hands the WS mount the protocol actions plus every RPC
|
|
34
|
-
* action, twinning the Rust `testing_spine_stub`, which compiles one action
|
|
35
|
-
* registry and serves it on both transports — plus the room verbs and their
|
|
36
|
-
* notifications, which only the WS endpoint serves (the stub's `ws_only`
|
|
37
|
-
* specs, which its RPC dispatcher refuses). The reconciliation test
|
|
38
|
-
* enumerates `build_full_spine_rpc_actions` with stub deps and asserts the live method set equals the tagged coverage
|
|
39
|
-
* manifest; see `src/test/cross_backend/spine_method_coverage.ts`.
|
|
40
|
-
*
|
|
41
|
-
* @module
|
|
42
|
-
*/
|
|
43
2
|
import type { Action, RpcAction } from '../../actions/action_types.js';
|
|
44
3
|
import { ConnectionRegistry } from '../../actions/connection_registry.js';
|
|
45
4
|
import { RoomRegistry } from '../../actions/room_registry.js';
|
|
@@ -81,7 +40,7 @@ export interface FullSpineMountOptions {
|
|
|
81
40
|
* the off-surface families (`_testing_*` backdoors, cells, actor resolvers).
|
|
82
41
|
*
|
|
83
42
|
* Mirrors the previous inline assembly in `testing_spine_server.ts` exactly —
|
|
84
|
-
* `
|
|
43
|
+
* `session_cookie_name` is pinned to `SESSION_COOKIE_NAME` (the binary's cookie
|
|
85
44
|
* config) and `roles` to `spine_roles` (carrying `cell_editor`), so the only
|
|
86
45
|
* runtime-varying inputs are the daemon-token state and the room registry.
|
|
87
46
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"full_spine_mount.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/full_spine_mount.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"full_spine_mount.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/full_spine_mount.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA6C9B,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAS1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA2C7D;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GAAI,aAAa,kBAAkB,KAAG,YAC1B,CAAC;AAEpD,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACrC;;;;;;OAMG;IACH,QAAQ,CAAC,kBAAkB,EAAE,gBAAgB,CAAC;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC;CACtC;AASD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,4BAA4B,GACxC,MAAM,OAAO,EACb,SAAS,qBAAqB,KAC5B,KAAK,CAAC,SAAS,CAAwD,CAAC;AAwE3E,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC9B,gFAAgF;IAChF,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACnC;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,GAClC,MAAM,OAAO,EACb,SAAS,qBAAqB,KAC5B,cAYF,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+BAA+B,QAAO,KAAK,CAAC,eAAe,CAOvE,CAAC"}
|
|
@@ -1,4 +1,46 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
|
+
/**
|
|
3
|
+
* The **full** live RPC mount for fuz_app's own spine test binary — the
|
|
4
|
+
* complete action set `testing_spine_server.ts` exposes on a single RPC
|
|
5
|
+
* endpoint, in one place.
|
|
6
|
+
*
|
|
7
|
+
* Where `default_spine_surface.ts` defines the **declared** surface
|
|
8
|
+
* (`create_spine_surface_spec` / `spine_rpc_endpoints` — the
|
|
9
|
+
* `create_standard_rpc_actions` bundle the spec-derived suites
|
|
10
|
+
* auto-enumerate), this module defines its superset: the standard bundle
|
|
11
|
+
* **plus** the families the binary live-mounts but keeps off the declared
|
|
12
|
+
* surface —
|
|
13
|
+
*
|
|
14
|
+
* - the `_testing_*` daemon-token backdoors (`create_testing_actions`),
|
|
15
|
+
* - the full cell verb set (CRUD + grant + field + item + audit),
|
|
16
|
+
* - the opt-in `actor_lookup` / `actor_search` resolvers,
|
|
17
|
+
* - the `_testing_origin_check` probe the origin conformance table drives,
|
|
18
|
+
* - the `_testing_credential_read` probe the credential conformance table drives,
|
|
19
|
+
* - the `_testing_shorten_credential_expiry` seam the credential-deadline
|
|
20
|
+
* suite drives,
|
|
21
|
+
* - the `_testing_room_evict` seam the rooms suite drives, over the room
|
|
22
|
+
* registry the WebSocket-only room verbs run on,
|
|
23
|
+
* - the `_testing_action_manifest` backdoor, appended last (it dumps the live
|
|
24
|
+
* method set for the cross-impl manifest-parity gate, so it must enumerate
|
|
25
|
+
* every method above it — and the room verbs, as `transport: 'ws'`).
|
|
26
|
+
*
|
|
27
|
+
* Single-sourcing the mount here lets the binary, the in-process parity
|
|
28
|
+
* setup, and the `spine_method_coverage` reconciliation test all build the
|
|
29
|
+
* same list — so a method can never be mounted in one place and forgotten
|
|
30
|
+
* in another.
|
|
31
|
+
*
|
|
32
|
+
* The binary's WS endpoint serves the same list: `build_full_spine_mount`
|
|
33
|
+
* builds it once and hands the WS mount the protocol actions plus every RPC
|
|
34
|
+
* action, twinning the Rust `testing_spine_stub`, which compiles one action
|
|
35
|
+
* registry and serves it on both transports — plus the room verbs and their
|
|
36
|
+
* notifications, which only the WS endpoint serves (the stub's `ws_only`
|
|
37
|
+
* specs, which its RPC dispatcher refuses). The reconciliation test
|
|
38
|
+
* enumerates `build_full_spine_rpc_actions` with stub deps and asserts the live method set equals the tagged coverage
|
|
39
|
+
* manifest; see `src/test/cross_backend/spine_method_coverage.ts`.
|
|
40
|
+
*
|
|
41
|
+
* @module
|
|
42
|
+
*/
|
|
43
|
+
import { SESSION_COOKIE_NAME } from '../../auth/session_cookie.js';
|
|
2
44
|
import { ConnectionRegistry } from '../../actions/connection_registry.js';
|
|
3
45
|
import { peer_ping_action } from '../../actions/peer_ping.js';
|
|
4
46
|
import { protocol_actions } from '../../actions/protocol.js';
|
|
@@ -18,7 +60,7 @@ import { create_testing_credential_read_action } from './testing_credential_read
|
|
|
18
60
|
import { create_testing_origin_check_action } from './testing_origin_check.js';
|
|
19
61
|
import { test_cell_gated_create_authorize } from './test_cell_gated_create_authorize.js';
|
|
20
62
|
import { test_cell_grant_steward_revoke_authorize } from './test_cell_grant_steward_revoke_authorize.js';
|
|
21
|
-
import { spine_roles
|
|
63
|
+
import { spine_roles } from './default_spine_surface.js';
|
|
22
64
|
import { SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
23
65
|
/**
|
|
24
66
|
* The domain tables the spine binary's `_testing_reset` empties beside the
|
|
@@ -56,7 +98,7 @@ export const create_spine_room_registry = (connections) => new RoomRegistry(conn
|
|
|
56
98
|
* the off-surface families (`_testing_*` backdoors, cells, actor resolvers).
|
|
57
99
|
*
|
|
58
100
|
* Mirrors the previous inline assembly in `testing_spine_server.ts` exactly —
|
|
59
|
-
* `
|
|
101
|
+
* `session_cookie_name` is pinned to `SESSION_COOKIE_NAME` (the binary's cookie
|
|
60
102
|
* config) and `roles` to `spine_roles` (carrying `cell_editor`), so the only
|
|
61
103
|
* runtime-varying inputs are the daemon-token state and the room registry.
|
|
62
104
|
*
|
|
@@ -79,7 +121,6 @@ const build_full_spine_actions = (deps, options) => {
|
|
|
79
121
|
const actions = [
|
|
80
122
|
...create_standard_rpc_actions(deps, { roles: spine_roles }),
|
|
81
123
|
...create_testing_actions(deps, {
|
|
82
|
-
session_options: spine_session_options,
|
|
83
124
|
daemon_token_state: options.daemon_token_state,
|
|
84
125
|
reset_state: create_reset_spine_domain_state(room_registry)
|
|
85
126
|
}),
|
|
@@ -107,7 +148,7 @@ const build_full_spine_actions = (deps, options) => {
|
|
|
107
148
|
// cookie name — out of `create_testing_actions` for the same reason
|
|
108
149
|
create_testing_credential_read_action({
|
|
109
150
|
keyring: deps.keyring,
|
|
110
|
-
|
|
151
|
+
session_cookie_name: SESSION_COOKIE_NAME
|
|
111
152
|
}),
|
|
112
153
|
// the credential-deadline suite's shorten-only seam — kept out of
|
|
113
154
|
// `create_testing_actions` for the same reason
|
|
@@ -3,7 +3,6 @@ import type { RouteSpec } from '../../http/route_spec.js';
|
|
|
3
3
|
import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
4
4
|
import type { BootstrapServerOptions } from '../../server/app_server.js';
|
|
5
5
|
import type { AppServerContext } from '../../server/app_server_context.js';
|
|
6
|
-
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
7
6
|
import { type CreateTestAppOptions, type SuiteAppOptions } from '../test_app.js';
|
|
8
7
|
import { type DbInvariantExclusions } from '../db_invariant_queries.js';
|
|
9
8
|
import { type RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
@@ -71,7 +70,7 @@ export declare const default_in_process_setup: (options: InProcessSetupOptions)
|
|
|
71
70
|
* `{setup_test, surface_source, capabilities}` bundle.
|
|
72
71
|
*/
|
|
73
72
|
export interface DefaultInProcessSuiteOptions {
|
|
74
|
-
|
|
73
|
+
session_cookie_name: string;
|
|
75
74
|
create_route_specs: (ctx: AppServerContext) => Array<RouteSpec>;
|
|
76
75
|
rpc_endpoints?: RpcEndpointsSuiteOption;
|
|
77
76
|
/**
|
|
@@ -125,7 +124,7 @@ export interface DefaultInProcessSuiteOptions {
|
|
|
125
124
|
* Build the full in-process suite bundle in a single helper invocation.
|
|
126
125
|
* Output covers `{setup_test, surface_source, capabilities}` plus every
|
|
127
126
|
* factory input the Tier 1 suites read at their top level
|
|
128
|
-
* (`
|
|
127
|
+
* (`session_cookie_name`, `create_route_specs`, `rpc_endpoints`), and the
|
|
129
128
|
* integration suite's `base_url` (`null`, no socket) and `max_body_bytes`
|
|
130
129
|
* (`app_options.max_body_size`, `app_options.host_gate`) — so the call site spreads once and adds
|
|
131
130
|
* only suite-specific extras (`roles`, `skip_routes`, `input_overrides`,
|
|
@@ -134,7 +133,7 @@ export interface DefaultInProcessSuiteOptions {
|
|
|
134
133
|
* ```ts
|
|
135
134
|
* // Suite-extras-free call: helper output is the entire options bag.
|
|
136
135
|
* describe_round_trip_validation(default_in_process_suite_options({
|
|
137
|
-
*
|
|
136
|
+
* session_cookie_name,
|
|
138
137
|
* create_route_specs,
|
|
139
138
|
* rpc_endpoints: [rpc_endpoint_spec],
|
|
140
139
|
* }));
|
|
@@ -142,14 +141,14 @@ export interface DefaultInProcessSuiteOptions {
|
|
|
142
141
|
* // With suite-specific extras: spread and add.
|
|
143
142
|
* describe_standard_admin_integration_tests({
|
|
144
143
|
* ...default_in_process_suite_options({
|
|
145
|
-
*
|
|
144
|
+
* session_cookie_name, create_route_specs, rpc_endpoints,
|
|
146
145
|
* extra_keeper_roles: [MY_APP_ROLE],
|
|
147
146
|
* }),
|
|
148
147
|
* roles,
|
|
149
148
|
* });
|
|
150
149
|
* ```
|
|
151
150
|
*
|
|
152
|
-
* Suites that don't read `
|
|
151
|
+
* Suites that don't read `session_cookie_name` / `rpc_endpoints` at their
|
|
153
152
|
* top level (`round_trip`, `data_exposure`) accept the spread anyway —
|
|
154
153
|
* excess properties on spread sources aren't checked by TS, and the
|
|
155
154
|
* uniform shape keeps consumer call sites mechanical.
|
|
@@ -158,7 +157,7 @@ export declare const default_in_process_suite_options: <const O extends DefaultI
|
|
|
158
157
|
setup_test: SetupTest;
|
|
159
158
|
surface_source: AppSurfaceSpec;
|
|
160
159
|
capabilities: BackendCapabilities;
|
|
161
|
-
|
|
160
|
+
session_cookie_name: O["session_cookie_name"];
|
|
162
161
|
create_route_specs: O["create_route_specs"];
|
|
163
162
|
rpc_endpoints: O["rpc_endpoints"];
|
|
164
163
|
base_url: null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in_process_setup.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/in_process_setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"in_process_setup.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/in_process_setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB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AY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACrC;;;OAGG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gCAAgC,GAAI,KAAK,CAAC,CAAC,SAAS,4BAA4B,EAC5F,SAAS,CAAC,KACR;IACF,UAAU,EAAE,SAAS,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,mBAAmB,CAAC;IAClC,mBAAmB,EAAE,CAAC,CAAC,qBAAqB,CAAC,CAAC;IAC9C,kBAAkB,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC;IAClC,QAAQ,EAAE,IAAI,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CAsClC,CAAC"}
|
|
@@ -65,11 +65,11 @@ export const default_in_process_setup = (options) => {
|
|
|
65
65
|
// `grant_paths` excludes `'admin'` (e.g. `ROLE_KEEPER`) — see
|
|
66
66
|
// `ExtraAccountSpec` for why this bypass is bootstrap-cradle-only.
|
|
67
67
|
const extra_accounts = {};
|
|
68
|
-
const
|
|
68
|
+
const cookie_name = options.session_cookie_name;
|
|
69
69
|
// where `account_verify` is mounted, for the liveness checks of the
|
|
70
70
|
// dead-credential mints; read only when one runs
|
|
71
71
|
const account_verify_rpc_path = (accessor) => {
|
|
72
|
-
const found = find_rpc_action(resolve_rpc_endpoints_for_setup(options.rpc_endpoints ?? [], options.
|
|
72
|
+
const found = find_rpc_action(resolve_rpc_endpoints_for_setup(options.rpc_endpoints ?? [], options.session_cookie_name), 'account_verify');
|
|
73
73
|
if (!found) {
|
|
74
74
|
throw new Error(`${accessor}: the in-process app mounts no account_verify to prove the credential live`);
|
|
75
75
|
}
|
|
@@ -79,7 +79,6 @@ export const default_in_process_setup = (options) => {
|
|
|
79
79
|
const seeded = await create_test_account_with_credentials({
|
|
80
80
|
db: test_app.backend.deps.db,
|
|
81
81
|
keyring: test_app.backend.keyring,
|
|
82
|
-
session_options: options.session_options,
|
|
83
82
|
password: test_app.backend.deps.password,
|
|
84
83
|
username: spec.username,
|
|
85
84
|
password_value: spec.password_value,
|
|
@@ -119,7 +118,6 @@ export const default_in_process_setup = (options) => {
|
|
|
119
118
|
const { session_cookie } = await mint_test_session({
|
|
120
119
|
db: test_app.backend.deps.db,
|
|
121
120
|
keyring: test_app.backend.keyring,
|
|
122
|
-
session_options: options.session_options,
|
|
123
121
|
account_id: test_app.backend.account.id,
|
|
124
122
|
expires_in_seconds: EXPIRED_SESSION_OFFSET_SECONDS
|
|
125
123
|
});
|
|
@@ -138,7 +136,6 @@ export const default_in_process_setup = (options) => {
|
|
|
138
136
|
const { session_cookie, session_hash } = await mint_test_session({
|
|
139
137
|
db,
|
|
140
138
|
keyring: test_app.backend.keyring,
|
|
141
|
-
session_options: options.session_options,
|
|
142
139
|
account_id,
|
|
143
140
|
expires_in_seconds: AUTH_SESSION_LIFETIME_MS / 1000
|
|
144
141
|
});
|
|
@@ -203,7 +200,7 @@ export const default_in_process_setup = (options) => {
|
|
|
203
200
|
* Build the full in-process suite bundle in a single helper invocation.
|
|
204
201
|
* Output covers `{setup_test, surface_source, capabilities}` plus every
|
|
205
202
|
* factory input the Tier 1 suites read at their top level
|
|
206
|
-
* (`
|
|
203
|
+
* (`session_cookie_name`, `create_route_specs`, `rpc_endpoints`), and the
|
|
207
204
|
* integration suite's `base_url` (`null`, no socket) and `max_body_bytes`
|
|
208
205
|
* (`app_options.max_body_size`, `app_options.host_gate`) — so the call site spreads once and adds
|
|
209
206
|
* only suite-specific extras (`roles`, `skip_routes`, `input_overrides`,
|
|
@@ -212,7 +209,7 @@ export const default_in_process_setup = (options) => {
|
|
|
212
209
|
* ```ts
|
|
213
210
|
* // Suite-extras-free call: helper output is the entire options bag.
|
|
214
211
|
* describe_round_trip_validation(default_in_process_suite_options({
|
|
215
|
-
*
|
|
212
|
+
* session_cookie_name,
|
|
216
213
|
* create_route_specs,
|
|
217
214
|
* rpc_endpoints: [rpc_endpoint_spec],
|
|
218
215
|
* }));
|
|
@@ -220,21 +217,21 @@ export const default_in_process_setup = (options) => {
|
|
|
220
217
|
* // With suite-specific extras: spread and add.
|
|
221
218
|
* describe_standard_admin_integration_tests({
|
|
222
219
|
* ...default_in_process_suite_options({
|
|
223
|
-
*
|
|
220
|
+
* session_cookie_name, create_route_specs, rpc_endpoints,
|
|
224
221
|
* extra_keeper_roles: [MY_APP_ROLE],
|
|
225
222
|
* }),
|
|
226
223
|
* roles,
|
|
227
224
|
* });
|
|
228
225
|
* ```
|
|
229
226
|
*
|
|
230
|
-
* Suites that don't read `
|
|
227
|
+
* Suites that don't read `session_cookie_name` / `rpc_endpoints` at their
|
|
231
228
|
* top level (`round_trip`, `data_exposure`) accept the spread anyway —
|
|
232
229
|
* excess properties on spread sources aren't checked by TS, and the
|
|
233
230
|
* uniform shape keeps consumer call sites mechanical.
|
|
234
231
|
*/
|
|
235
232
|
export const default_in_process_suite_options = (options) => ({
|
|
236
233
|
setup_test: default_in_process_setup({
|
|
237
|
-
|
|
234
|
+
session_cookie_name: options.session_cookie_name,
|
|
238
235
|
create_route_specs: options.create_route_specs,
|
|
239
236
|
rpc_endpoints: options.rpc_endpoints,
|
|
240
237
|
bootstrap: options.bootstrap,
|
|
@@ -247,7 +244,7 @@ export const default_in_process_suite_options = (options) => ({
|
|
|
247
244
|
}),
|
|
248
245
|
surface_source: options.surface_source ??
|
|
249
246
|
create_test_app_surface_spec({
|
|
250
|
-
|
|
247
|
+
session_cookie_name: options.session_cookie_name,
|
|
251
248
|
create_route_specs: options.create_route_specs,
|
|
252
249
|
rpc_endpoints: options.rpc_endpoints,
|
|
253
250
|
// Mirror what `create_test_app` → `create_app_server` will mount.
|
|
@@ -262,7 +259,7 @@ export const default_in_process_suite_options = (options) => ({
|
|
|
262
259
|
daemon_token: true
|
|
263
260
|
}),
|
|
264
261
|
capabilities: in_process_capabilities,
|
|
265
|
-
|
|
262
|
+
session_cookie_name: options.session_cookie_name,
|
|
266
263
|
create_route_specs: options.create_route_specs,
|
|
267
264
|
rpc_endpoints: options.rpc_endpoints,
|
|
268
265
|
// in-process: no socket, and the limit `create_app_server` mounts
|
|
@@ -23,7 +23,6 @@ import '../assert_dev_env.js';
|
|
|
23
23
|
import type { RpcAction } from '../../actions/action_types.js';
|
|
24
24
|
import type { ActionSpecUnion } from '../../actions/action_spec.js';
|
|
25
25
|
import type { RoleRegistry } from '../../auth/role_schema.js';
|
|
26
|
-
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
27
26
|
import type { AppSurfaceSpec, RpcEndpointSpec } from '../../http/surface.js';
|
|
28
27
|
import type { AppServerContext } from '../../server/app_server_context.js';
|
|
29
28
|
/**
|
|
@@ -62,8 +61,8 @@ export interface RustSpineConsumerRpcEndpointsOptions {
|
|
|
62
61
|
}
|
|
63
62
|
/** Options for `create_rust_spine_consumer_surface_spec`. */
|
|
64
63
|
export interface RustSpineConsumerSurfaceSpecOptions extends RustSpineConsumerRpcEndpointsOptions {
|
|
65
|
-
/** The
|
|
66
|
-
readonly
|
|
64
|
+
/** The session cookie's name. */
|
|
65
|
+
readonly session_cookie_name: string;
|
|
67
66
|
/**
|
|
68
67
|
* Whether the server mounts the spine's host gate
|
|
69
68
|
* (`fuz_http::StackOptions::host_gate`, on by default), declared as the
|
|
@@ -91,7 +90,7 @@ export declare const create_rust_spine_consumer_rpc_endpoints: (options: RustSpi
|
|
|
91
90
|
* layer every consumer test binary wires, and — unless `host_gate` is
|
|
92
91
|
* `false` — the host gate's `host` layer.
|
|
93
92
|
*
|
|
94
|
-
* @param options - the consumer's session
|
|
93
|
+
* @param options - the consumer's session cookie name, action specs, extras and roles
|
|
95
94
|
* @returns the surface spec, for `describe_spine_cross_suites`'s `surface_source`
|
|
96
95
|
* @throws Error when an account route shape the Rust router mounts is missing,
|
|
97
96
|
* or an `exclude_methods` entry names no domain spec
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAK9D,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,wDAAyD,CAAC;AAK3F,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAChG,iCAAiC;IACjC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACpD,SAAS,oCAAoC,KAC3C,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,eAAe,CAAC,CA+BpD,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,mCAAmC,KAC1C,cAUA,CAAC"}
|
|
@@ -86,13 +86,13 @@ const create_spine_consumer_route_specs = (ctx) => {
|
|
|
86
86
|
* layer every consumer test binary wires, and — unless `host_gate` is
|
|
87
87
|
* `false` — the host gate's `host` layer.
|
|
88
88
|
*
|
|
89
|
-
* @param options - the consumer's session
|
|
89
|
+
* @param options - the consumer's session cookie name, action specs, extras and roles
|
|
90
90
|
* @returns the surface spec, for `describe_spine_cross_suites`'s `surface_source`
|
|
91
91
|
* @throws Error when an account route shape the Rust router mounts is missing,
|
|
92
92
|
* or an `exclude_methods` entry names no domain spec
|
|
93
93
|
*/
|
|
94
94
|
export const create_rust_spine_consumer_surface_spec = (options) => create_test_app_surface_spec({
|
|
95
|
-
|
|
95
|
+
session_cookie_name: options.session_cookie_name,
|
|
96
96
|
create_route_specs: create_spine_consumer_route_specs,
|
|
97
97
|
rpc_endpoints: create_rust_spine_consumer_rpc_endpoints(options),
|
|
98
98
|
// the binaries mount `bootstrap_router`; `surface_only` declares its shape
|
|
@@ -198,7 +198,7 @@ export interface TestFixture {
|
|
|
198
198
|
* return the ready-to-send `Cookie` header value (`name=value`). The
|
|
199
199
|
* minted `auth_session` row is backdated while the signed cookie payload
|
|
200
200
|
* stays valid — so resolution clears the cookie-payload gate
|
|
201
|
-
* (`
|
|
201
|
+
* (`parse_session_from_cookies`) and is refused at the authoritative DB-row gate
|
|
202
202
|
* (`query_session_get_valid` — `WHERE expires_at > NOW()`). Backs the
|
|
203
203
|
* `expired_session` conformance principal. In-process mints directly via
|
|
204
204
|
* `mint_test_session`; cross-process drives the `_testing_mint_session`
|
|
@@ -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';
|
|
@@ -198,8 +197,8 @@ export interface SpineSuiteRoles {
|
|
|
198
197
|
export interface SpineCrossSuitesOptions {
|
|
199
198
|
/** The declared surface — the standard bundle and `rpc_adversarial` enumerate it. */
|
|
200
199
|
readonly surface_source: AppSurfaceSpec;
|
|
201
|
-
/** The
|
|
202
|
-
readonly
|
|
200
|
+
/** The session cookie's name, for the standard bundle. */
|
|
201
|
+
readonly session_cookie_name: string;
|
|
203
202
|
/** The backend's RPC endpoints, for the standard bundle. */
|
|
204
203
|
readonly rpc_endpoints: RpcEndpointsSuiteOption;
|
|
205
204
|
/**
|
|
@@ -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;AAw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B,gDAAgD,CAAC"}
|
|
@@ -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
|
|
@@ -696,7 +696,7 @@ const SUITE_ENTRIES = {
|
|
|
696
696
|
setup_test: c.setup(),
|
|
697
697
|
surface_source: c.options.surface_source,
|
|
698
698
|
live_rpc_endpoints: c.options.live_rpc_endpoints &&
|
|
699
|
-
resolve_rpc_endpoints_for_setup(c.options.live_rpc_endpoints, c.options.
|
|
699
|
+
resolve_rpc_endpoints_for_setup(c.options.live_rpc_endpoints, c.options.session_cookie_name),
|
|
700
700
|
rpc_path: c.config.rpc_path,
|
|
701
701
|
input_overrides: c.options.rpc_input_overrides
|
|
702
702
|
}),
|
|
@@ -755,7 +755,7 @@ const SUITE_ENTRIES = {
|
|
|
755
755
|
}),
|
|
756
756
|
surface_source: c.options.surface_source,
|
|
757
757
|
capabilities: c.config.capabilities,
|
|
758
|
-
|
|
758
|
+
session_cookie_name: c.options.session_cookie_name,
|
|
759
759
|
rpc_endpoints: c.options.rpc_endpoints,
|
|
760
760
|
roles: c.options.roles,
|
|
761
761
|
rpc_success_fixtures: c.options.rpc_success_fixtures,
|
|
@@ -769,7 +769,7 @@ const SUITE_ENTRIES = {
|
|
|
769
769
|
required: {
|
|
770
770
|
setup_test: true,
|
|
771
771
|
surface_source: true,
|
|
772
|
-
|
|
772
|
+
session_cookie_name: true,
|
|
773
773
|
rpc_endpoints: true,
|
|
774
774
|
capabilities: true,
|
|
775
775
|
base_url: true
|
|
@@ -981,7 +981,7 @@ const validate_spine_cross_suites_options = (options, declared, backdoor_skips,
|
|
|
981
981
|
methods.add(method.name);
|
|
982
982
|
}
|
|
983
983
|
if (options.live_rpc_endpoints) {
|
|
984
|
-
const live = resolve_rpc_endpoints_for_setup(options.live_rpc_endpoints, options.
|
|
984
|
+
const live = resolve_rpc_endpoints_for_setup(options.live_rpc_endpoints, options.session_cookie_name);
|
|
985
985
|
for (const endpoint of live) {
|
|
986
986
|
for (const action of endpoint.actions)
|
|
987
987
|
methods.add(action.spec.method);
|