@fuzdev/fuz_app 0.181.0 → 0.183.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/README.md +2 -0
- package/dist/actions/CLAUDE.md +28 -10
- package/dist/actions/action_rpc.d.ts +11 -1
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +3 -2
- package/dist/actions/action_types.d.ts +16 -1
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/action_types.js +1 -1
- package/dist/actions/notification_sender.d.ts +83 -0
- package/dist/actions/notification_sender.d.ts.map +1 -0
- package/dist/actions/notification_sender.js +85 -0
- package/dist/actions/perform_action.d.ts +9 -0
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +22 -13
- package/dist/actions/register_action_ws.d.ts +14 -0
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/register_action_ws.js +3 -2
- package/dist/actions/ws_socket_session.d.ts +3 -0
- package/dist/actions/ws_socket_session.d.ts.map +1 -1
- package/dist/actions/ws_socket_session.js +2 -1
- package/dist/auth/CLAUDE.md +113 -70
- package/dist/auth/account_actions.d.ts.map +1 -1
- package/dist/auth/account_actions.js +13 -3
- package/dist/auth/account_queries.d.ts +158 -16
- package/dist/auth/account_queries.d.ts.map +1 -1
- package/dist/auth/account_queries.js +189 -18
- package/dist/auth/account_routes.d.ts +6 -4
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +98 -92
- package/dist/auth/admin_actions.d.ts.map +1 -1
- package/dist/auth/admin_actions.js +93 -45
- package/dist/auth/api_token_queries.d.ts +13 -5
- package/dist/auth/api_token_queries.d.ts.map +1 -1
- package/dist/auth/api_token_queries.js +24 -9
- package/dist/auth/audit_emitter.d.ts +75 -84
- package/dist/auth/audit_emitter.d.ts.map +1 -1
- package/dist/auth/audit_emitter.js +83 -71
- package/dist/auth/audit_log_schema.d.ts +10 -5
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +22 -6
- package/dist/auth/bearer_auth.d.ts.map +1 -1
- package/dist/auth/bearer_auth.js +3 -2
- package/dist/auth/bootstrap_account.d.ts +31 -13
- package/dist/auth/bootstrap_account.d.ts.map +1 -1
- package/dist/auth/bootstrap_account.js +34 -15
- package/dist/auth/bootstrap_routes.d.ts +1 -1
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +7 -14
- package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.js +12 -1
- package/dist/auth/deps.d.ts +18 -5
- package/dist/auth/deps.d.ts.map +1 -1
- package/dist/auth/deps.js +3 -2
- package/dist/auth/request_context.d.ts +73 -73
- package/dist/auth/request_context.d.ts.map +1 -1
- package/dist/auth/request_context.js +78 -96
- package/dist/auth/resolved_auth.d.ts +16 -11
- package/dist/auth/resolved_auth.d.ts.map +1 -1
- package/dist/auth/resolved_auth.js +6 -6
- package/dist/auth/role_grant_offer_action_specs.d.ts +1 -1
- package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_action_specs.js +2 -1
- package/dist/auth/role_grant_offer_actions.d.ts +32 -12
- package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_actions.js +91 -116
- package/dist/auth/role_grant_offer_notifications.d.ts +87 -38
- package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_notifications.js +75 -22
- package/dist/auth/role_grant_offer_queries.d.ts +155 -18
- package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_queries.js +262 -73
- package/dist/auth/role_grant_offer_schema.js +1 -1
- package/dist/auth/role_grant_queries.d.ts +43 -52
- package/dist/auth/role_grant_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_queries.js +50 -74
- package/dist/auth/role_grant_sql.d.ts +21 -0
- package/dist/auth/role_grant_sql.d.ts.map +1 -1
- package/dist/auth/role_grant_sql.js +21 -0
- package/dist/auth/self_service_role_actions.d.ts.map +1 -1
- package/dist/auth/self_service_role_actions.js +17 -21
- package/dist/auth/session_queries.d.ts +40 -16
- package/dist/auth/session_queries.d.ts.map +1 -1
- package/dist/auth/session_queries.js +68 -29
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +90 -38
- package/dist/auth/standard_rpc_actions.d.ts +6 -19
- package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
- package/dist/auth/standard_rpc_actions.js +5 -6
- package/dist/auth/token_scope.d.ts +1 -1
- package/dist/auth/token_scope.js +1 -1
- package/dist/db/sql_columns.d.ts +1 -1
- package/dist/db/sql_columns.js +1 -1
- package/dist/http/CLAUDE.md +22 -16
- package/dist/http/auth_shape.d.ts +1 -1
- package/dist/http/db_routes.d.ts +7 -22
- package/dist/http/db_routes.d.ts.map +1 -1
- package/dist/http/db_routes.js +72 -72
- package/dist/http/error_schemas.d.ts +9 -21
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +14 -24
- package/dist/http/pending_effects.d.ts +42 -4
- package/dist/http/pending_effects.d.ts.map +1 -1
- package/dist/http/pending_effects.js +34 -4
- package/dist/http/route_spec.d.ts +2 -2
- 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 +69 -18
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +74 -10
- package/dist/server/serve_fact_route.d.ts +3 -3
- package/dist/server/serve_fact_route.js +12 -12
- package/dist/testing/CLAUDE.md +259 -790
- package/dist/testing/adversarial_404.d.ts +6 -1
- package/dist/testing/adversarial_404.d.ts.map +1 -1
- package/dist/testing/adversarial_404.js +38 -17
- package/dist/testing/app_server.d.ts +20 -140
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/app_server.js +48 -125
- package/dist/testing/audit_drift_guard.d.ts +11 -6
- package/dist/testing/audit_drift_guard.d.ts.map +1 -1
- package/dist/testing/audit_drift_guard.js +15 -8
- package/dist/testing/auth_apps.js +1 -1
- package/dist/testing/cross_backend/account_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/account_lifecycle.js +43 -0
- package/dist/testing/cross_backend/audit_cross_helpers.d.ts +12 -9
- package/dist/testing/cross_backend/audit_cross_helpers.d.ts.map +1 -1
- package/dist/testing/cross_backend/audit_cross_helpers.js +13 -14
- package/dist/testing/cross_backend/capabilities.d.ts +9 -6
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- package/dist/testing/cross_backend/capabilities.js +11 -7
- package/dist/testing/cross_backend/capability_mounts.d.ts +103 -0
- package/dist/testing/cross_backend/capability_mounts.d.ts.map +1 -0
- package/dist/testing/cross_backend/capability_mounts.js +423 -0
- package/dist/testing/cross_backend/cell_moderate.js +2 -2
- package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_relations.js +12 -11
- package/dist/testing/cross_backend/conformance_principal.d.ts +54 -0
- package/dist/testing/cross_backend/conformance_principal.d.ts.map +1 -0
- package/dist/testing/cross_backend/conformance_principal.js +283 -0
- package/dist/testing/cross_backend/conformance_table.d.ts +2 -50
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +2 -270
- package/dist/testing/cross_backend/credential_deadline.d.ts.map +1 -1
- package/dist/testing/cross_backend/credential_deadline.js +2 -0
- package/dist/testing/cross_backend/credential_wire.d.ts +1 -1
- package/dist/testing/cross_backend/credential_wire.d.ts.map +1 -1
- package/dist/testing/cross_backend/db_state_diff.d.ts +72 -0
- package/dist/testing/cross_backend/db_state_diff.d.ts.map +1 -0
- package/dist/testing/cross_backend/db_state_diff.js +444 -0
- package/dist/testing/cross_backend/declared_skips.d.ts +68 -0
- package/dist/testing/cross_backend/declared_skips.d.ts.map +1 -0
- package/dist/testing/cross_backend/declared_skips.js +132 -0
- package/dist/testing/cross_backend/default_spine_surface.d.ts +1 -26
- package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_spine_surface.js +2 -6
- package/dist/testing/cross_backend/differential.d.ts +11 -2
- package/dist/testing/cross_backend/differential.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential.js +35 -11
- package/dist/testing/cross_backend/differential_normalize.d.ts +12 -0
- package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential_normalize.js +16 -0
- package/dist/testing/cross_backend/full_spine_mount.d.ts +3 -10
- package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
- package/dist/testing/cross_backend/full_spine_mount.js +4 -4
- package/dist/testing/cross_backend/in_process_setup.d.ts +22 -12
- package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/in_process_setup.js +151 -134
- package/dist/testing/cross_backend/login_security.d.ts +12 -0
- package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
- package/dist/testing/cross_backend/login_security.js +21 -4
- package/dist/testing/cross_backend/request_target_conformance_wire.d.ts +0 -2
- package/dist/testing/cross_backend/request_target_conformance_wire.d.ts.map +1 -1
- package/dist/testing/cross_backend/request_target_conformance_wire.js +3 -1
- package/dist/testing/cross_backend/revocation_drivers.d.ts +18 -5
- package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
- package/dist/testing/cross_backend/revocation_drivers.js +18 -10
- package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts +1 -1
- package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +33 -1
- package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts +5 -4
- package/dist/testing/cross_backend/role_grant_offer_notification_ws.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_notification_ws.js +183 -30
- package/dist/testing/cross_backend/role_grant_participation.js +4 -4
- package/dist/testing/cross_backend/rpc_adversarial.js +1 -1
- package/dist/testing/cross_backend/session_cap.d.ts +2 -2
- package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/session_cap.js +48 -16
- package/dist/testing/cross_backend/setup.d.ts +31 -1
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.js +32 -1
- package/dist/testing/cross_backend/spine_suites.d.ts +123 -12
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +454 -57
- package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.js +1 -0
- package/dist/testing/cross_backend/sse_round_trip.d.ts +9 -1
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.js +123 -27
- package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_backdoor.js +4 -2
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +59 -27
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +66 -42
- package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
- package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
- package/dist/testing/cross_backend/transport_composition.js +7 -3
- package/dist/testing/cross_backend/ws_round_trip.d.ts +5 -0
- package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_round_trip.js +54 -8
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/data_exposure.js +3 -0
- package/dist/testing/db.d.ts +0 -32
- package/dist/testing/db.d.ts.map +1 -1
- package/dist/testing/db.js +0 -86
- package/dist/testing/db_entities.d.ts +14 -0
- package/dist/testing/db_entities.d.ts.map +1 -1
- package/dist/testing/db_entities.js +17 -0
- package/dist/testing/db_invariant_queries.d.ts +259 -0
- package/dist/testing/db_invariant_queries.d.ts.map +1 -0
- package/dist/testing/db_invariant_queries.js +400 -0
- package/dist/testing/db_invariants.d.ts +106 -0
- package/dist/testing/db_invariants.d.ts.map +1 -0
- package/dist/testing/db_invariants.gen.sql.d.ts +11 -0
- package/dist/testing/db_invariants.gen.sql.d.ts.map +1 -0
- package/dist/testing/db_invariants.gen.sql.js +13 -0
- package/dist/testing/db_invariants.js +141 -0
- package/dist/testing/db_invariants.sql +152 -0
- package/dist/testing/describe_db.d.ts +36 -0
- package/dist/testing/describe_db.d.ts.map +1 -0
- package/dist/testing/describe_db.js +71 -0
- package/dist/testing/integration.d.ts +6 -9
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +9 -13
- package/dist/testing/integration_helpers.d.ts +1 -1
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/middleware.d.ts +1 -1
- package/dist/testing/middleware.js +5 -5
- package/dist/testing/rate_limiting.d.ts +1 -1
- package/dist/testing/rate_limiting.d.ts.map +1 -1
- package/dist/testing/rate_limiting.js +3 -2
- package/dist/testing/resolved_auth.d.ts +3 -1
- package/dist/testing/resolved_auth.d.ts.map +1 -1
- package/dist/testing/resolved_auth.js +4 -4
- package/dist/testing/role_grant_helpers.d.ts +1 -1
- package/dist/testing/role_grant_helpers.d.ts.map +1 -1
- package/dist/testing/round_trip.d.ts.map +1 -1
- package/dist/testing/round_trip.js +3 -0
- package/dist/testing/rpc_attack_surface.d.ts +8 -6
- package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
- package/dist/testing/rpc_attack_surface.js +69 -6
- package/dist/testing/rpc_round_trip.d.ts +1 -1
- package/dist/testing/rpc_round_trip.d.ts.map +1 -1
- package/dist/testing/rpc_round_trip.js +3 -0
- package/dist/testing/sse_round_trip.d.ts +1 -1
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +13 -4
- package/dist/testing/stubs.d.ts +4 -2
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +15 -7
- package/dist/testing/test_app.d.ts +166 -0
- package/dist/testing/test_app.d.ts.map +1 -0
- package/dist/testing/test_app.js +124 -0
- package/dist/testing/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/ws_round_trip.js +8 -4
- package/package.json +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import '../assert_dev_env.js';
|
|
2
|
+
/**
|
|
3
|
+
* Gated skips, and the check that holds them to a declared list.
|
|
4
|
+
*
|
|
5
|
+
* A cross suite skips a case when the backend lacks what the case needs —
|
|
6
|
+
* `test_if(capabilities.X, ...)`, or a suite `describe_spine_cross_suites`
|
|
7
|
+
* leaves out. Each such skip is registered by `test_skip_gated`, which tags
|
|
8
|
+
* the test it registers (`TaskMeta.fuz_gated_skip`). The tag is set at
|
|
9
|
+
* registration, so a `-t` filter or an `.only`, which skip tests later, never
|
|
10
|
+
* changes which tests carry it.
|
|
11
|
+
*
|
|
12
|
+
* `check_declared_skips(expected)` registers a closing test that reads every
|
|
13
|
+
* test under the suite it is called in and holds the tagged ones to
|
|
14
|
+
* `expected`, a test name path (describe titles and test name below that
|
|
15
|
+
* suite, joined with `' > '`) to the reason it skips here: an undeclared
|
|
16
|
+
* skip fails, as does an entry whose test was registered to run (stale) or
|
|
17
|
+
* that names no test at all. A skip the backend didn't mean — a capability
|
|
18
|
+
* flipped by mistake, a suite gating on a new flag — then fails the run
|
|
19
|
+
* rather than passing as one more skipped test.
|
|
20
|
+
*
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
import { assert, test } from 'vitest';
|
|
24
|
+
/** The name of the test `check_declared_skips` registers. */
|
|
25
|
+
export const DECLARED_SKIPS_CHECK_NAME = 'every gated skip is declared';
|
|
26
|
+
/**
|
|
27
|
+
* Register `fn` as a skipped test, tagged as a gated skip — the skip a backend
|
|
28
|
+
* owes a declaration for (`check_declared_skips`). `test_if` registers its
|
|
29
|
+
* skipped cases through it.
|
|
30
|
+
*
|
|
31
|
+
* @param name - the test name
|
|
32
|
+
* @param fn - the test body, never run
|
|
33
|
+
*/
|
|
34
|
+
export const test_skip_gated = (name, fn) => {
|
|
35
|
+
test.skip(name, { meta: { fuz_gated_skip: true } }, fn);
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Whether `task` was registered by `test_skip_gated`.
|
|
39
|
+
*
|
|
40
|
+
* @param task - a collected task
|
|
41
|
+
*/
|
|
42
|
+
export const is_gated_skip = (task) => task.meta?.fuz_gated_skip === true;
|
|
43
|
+
/**
|
|
44
|
+
* Hold the collected tests' gated skips to `expected` — the pure half of
|
|
45
|
+
* `check_declared_skips`.
|
|
46
|
+
*
|
|
47
|
+
* @param expected - test name path to the reason it skips
|
|
48
|
+
* @param tests - every collected test under the checked suite
|
|
49
|
+
* @returns one line per problem: an undeclared skip, a declared skip
|
|
50
|
+
* registered to run, or a declared path naming no test
|
|
51
|
+
*/
|
|
52
|
+
export const find_declared_skip_problems = (expected, tests) => {
|
|
53
|
+
const gated = new Set();
|
|
54
|
+
const running = new Set();
|
|
55
|
+
for (const t of tests)
|
|
56
|
+
(t.gated_skip ? gated : running).add(t.path);
|
|
57
|
+
const problems = [];
|
|
58
|
+
for (const path of gated) {
|
|
59
|
+
if (!(path in expected))
|
|
60
|
+
problems.push(`undeclared skip: ${path}`);
|
|
61
|
+
}
|
|
62
|
+
for (const path of Object.keys(expected)) {
|
|
63
|
+
if (gated.has(path))
|
|
64
|
+
continue;
|
|
65
|
+
problems.push(running.has(path)
|
|
66
|
+
? `declared skip registered to run (stale — remove its entry): ${path}`
|
|
67
|
+
: `declared skip names no collected test (a renamed or removed test, a path missing a describe title, or a test a nested check owns): ${path}`);
|
|
68
|
+
}
|
|
69
|
+
return problems;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Validate `expected`'s reasons.
|
|
73
|
+
*
|
|
74
|
+
* @param expected - test name path to the reason it skips
|
|
75
|
+
* @param label - who passed it, for the error
|
|
76
|
+
* @throws Error - naming every entry with an empty reason
|
|
77
|
+
*/
|
|
78
|
+
export const assert_declared_skip_reasons = (expected, label) => {
|
|
79
|
+
const missing = Object.entries(expected)
|
|
80
|
+
.filter(([, reason]) => typeof reason !== 'string' || reason.trim() === '')
|
|
81
|
+
.map(([path]) => path);
|
|
82
|
+
if (missing.length > 0) {
|
|
83
|
+
throw new Error(`${label}: every declared skip needs a reason — ${missing.join('; ')}`);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
/** Whether `suite` holds a check of its own — a direct test named `DECLARED_SKIPS_CHECK_NAME`. */
|
|
87
|
+
const has_own_check = (suite) => suite.type === 'suite' &&
|
|
88
|
+
suite.tasks.some((t) => t.type === 'test' && t.name === DECLARED_SKIPS_CHECK_NAME);
|
|
89
|
+
/**
|
|
90
|
+
* Every test under `task`, as name paths starting with `prefix` — the check
|
|
91
|
+
* itself left out, and nothing below a suite with a check of its own, which
|
|
92
|
+
* owns its subtree.
|
|
93
|
+
*/
|
|
94
|
+
const collect_tests = (task, prefix, self, out) => {
|
|
95
|
+
if (task === self)
|
|
96
|
+
return;
|
|
97
|
+
const path = [...prefix, task.name];
|
|
98
|
+
if (task.type === 'suite') {
|
|
99
|
+
if (has_own_check(task))
|
|
100
|
+
return;
|
|
101
|
+
for (const child of task.tasks)
|
|
102
|
+
collect_tests(child, path, self, out);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
out.push({ path: path.join(' > '), gated_skip: is_gated_skip(task) });
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Register a closing test that holds every gated skip under the current suite
|
|
110
|
+
* (the enclosing `describe`, or the file) to `expected` — see the module doc.
|
|
111
|
+
* A nested suite with a check of its own owns its subtree: this check
|
|
112
|
+
* neither collects nor needs declared what sits below it.
|
|
113
|
+
* The paths are read from the collected tree when the test runs, so tests
|
|
114
|
+
* registered after the call count, and a filtered run checks the same paths
|
|
115
|
+
* as a whole one.
|
|
116
|
+
*
|
|
117
|
+
* @param expected - test name path below the current suite to the reason it
|
|
118
|
+
* skips on this backend; `{}` when nothing may skip
|
|
119
|
+
* @throws Error - at collection, on an entry with no reason
|
|
120
|
+
*/
|
|
121
|
+
export const check_declared_skips = (expected) => {
|
|
122
|
+
assert_declared_skip_reasons(expected, 'check_declared_skips');
|
|
123
|
+
test(DECLARED_SKIPS_CHECK_NAME, (ctx) => {
|
|
124
|
+
// a task at a file's top level has no `suite`, only its `file`
|
|
125
|
+
const root = ctx.task.suite ?? ctx.task.file;
|
|
126
|
+
assert.strictEqual(root.type, 'suite', 'check_declared_skips: no enclosing suite');
|
|
127
|
+
const tests = [];
|
|
128
|
+
for (const child of root.tasks)
|
|
129
|
+
collect_tests(child, [], ctx.task, tests);
|
|
130
|
+
assert.deepEqual(find_declared_skip_problems(expected, tests), [], 'gated skips');
|
|
131
|
+
});
|
|
132
|
+
};
|
|
@@ -17,7 +17,6 @@ import '../assert_dev_env.js';
|
|
|
17
17
|
* @module
|
|
18
18
|
*/
|
|
19
19
|
import type { Logger } from '@fuzdev/fuz_util/log.ts';
|
|
20
|
-
import type { NotificationSender } from '../../auth/role_grant_offer_notifications.js';
|
|
21
20
|
import { type RoleRegistry } from '../../auth/role_schema.js';
|
|
22
21
|
import { type SessionOptions } from '../../auth/session_cookie.js';
|
|
23
22
|
import { type RouteSpec } from '../../http/route_spec.js';
|
|
@@ -40,26 +39,6 @@ export declare const spine_session_options: SessionOptions<string>;
|
|
|
40
39
|
* (`admin_account_list.grantable_roles` carries it on both spines).
|
|
41
40
|
*/
|
|
42
41
|
export declare const spine_roles: RoleRegistry;
|
|
43
|
-
/** Options for `spine_rpc_endpoints`. */
|
|
44
|
-
export interface SpineRpcEndpointsOptions {
|
|
45
|
-
/**
|
|
46
|
-
* WS notification sender threaded into the role-grant-offer sub-factory for
|
|
47
|
-
* server-initiated fan-out (`role_grant_offer_received` / `_accepted` /
|
|
48
|
-
* `_declined` / `_retracted` / `_supersede`, flat `role_grant_revoked`).
|
|
49
|
-
*
|
|
50
|
-
* **Shared-instance trap.** Pass the SAME `ConnectionRegistry`
|
|
51
|
-
* instance the WS endpoint registers connections against — the registry
|
|
52
|
-
* *is* the fan-out target, so a separate instance would fan out to an
|
|
53
|
-
* empty registry and reach nobody (silently). The TS spine binary
|
|
54
|
-
* constructs one `ConnectionRegistry` and threads it both here and into
|
|
55
|
-
* `register_action_ws`.
|
|
56
|
-
*
|
|
57
|
-
* Omitted (the default) for the shared `create_spine_surface_spec` path —
|
|
58
|
-
* surface generation doesn't depend on it, and it must stay absent there so
|
|
59
|
-
* the declared snapshot is unaffected.
|
|
60
|
-
*/
|
|
61
|
-
readonly notification_sender?: NotificationSender | null;
|
|
62
|
-
}
|
|
63
42
|
/**
|
|
64
43
|
* Factory-form RPC endpoints over the per-test `ctx.deps`. `create_app_server`
|
|
65
44
|
* (in the binary) owns live dispatch; the surface builder invokes the factory
|
|
@@ -70,12 +49,8 @@ export interface SpineRpcEndpointsOptions {
|
|
|
70
49
|
* `actions` (see `testing/cross_backend/testing_reset_actions.ts`); it is intentionally excluded
|
|
71
50
|
* here so it stays off the declared surface (the harness calls it directly
|
|
72
51
|
* over the daemon-token channel).
|
|
73
|
-
*
|
|
74
|
-
* `options.notification_sender`, when supplied, reaches the role-grant-offer
|
|
75
|
-
* sub-factory so the spine emits the WS notification family — see
|
|
76
|
-
* `SpineRpcEndpointsOptions`.
|
|
77
52
|
*/
|
|
78
|
-
export declare const spine_rpc_endpoints: (ctx: AppServerContext
|
|
53
|
+
export declare const spine_rpc_endpoints: (ctx: AppServerContext) => Array<RpcEndpointSpec>;
|
|
79
54
|
/**
|
|
80
55
|
* Account REST + signup route specs under `/api/account` (bootstrap
|
|
81
56
|
* auto-mounted by the surface builder / `create_app_server`), plus the
|
|
@@ -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;AAItD,OAAO,
|
|
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;AAItD,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI1F,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;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,MAAM,CAAwC,CAAC;AAElG;;;;;;;;;;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"}
|
|
@@ -45,15 +45,11 @@ export const spine_roles = create_role_registry([
|
|
|
45
45
|
* `actions` (see `testing/cross_backend/testing_reset_actions.ts`); it is intentionally excluded
|
|
46
46
|
* here so it stays off the declared surface (the harness calls it directly
|
|
47
47
|
* over the daemon-token channel).
|
|
48
|
-
*
|
|
49
|
-
* `options.notification_sender`, when supplied, reaches the role-grant-offer
|
|
50
|
-
* sub-factory so the spine emits the WS notification family — see
|
|
51
|
-
* `SpineRpcEndpointsOptions`.
|
|
52
48
|
*/
|
|
53
|
-
export const spine_rpc_endpoints = (ctx
|
|
49
|
+
export const spine_rpc_endpoints = (ctx) => [
|
|
54
50
|
{
|
|
55
51
|
path: SPINE_RPC_PATH,
|
|
56
|
-
actions: create_standard_rpc_actions(
|
|
52
|
+
actions: create_standard_rpc_actions(ctx.deps, { roles: spine_roles })
|
|
57
53
|
}
|
|
58
54
|
];
|
|
59
55
|
/**
|
|
@@ -3,7 +3,8 @@ import type { AppSurfaceSpec } from '../../http/surface.js';
|
|
|
3
3
|
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
4
4
|
import type { RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
5
5
|
import type { ConformanceCase } from './conformance_case.js';
|
|
6
|
-
import {
|
|
6
|
+
import type { ConformancePrincipalConfig } from './conformance_principal.js';
|
|
7
|
+
import { type DbStateProbe } from './db_state_diff.js';
|
|
7
8
|
import type { SetupTest } from './setup.js';
|
|
8
9
|
import type { WsEndpointTarget } from './ws_endpoint.js';
|
|
9
10
|
/**
|
|
@@ -26,6 +27,13 @@ export interface DifferentialBackend {
|
|
|
26
27
|
* suite throws at registration.
|
|
27
28
|
*/
|
|
28
29
|
readonly ws?: WsEndpointTarget;
|
|
30
|
+
/**
|
|
31
|
+
* Reads the backend's database around each case, so the states the two
|
|
32
|
+
* backends are left in are compared too (module doc). Set on both or
|
|
33
|
+
* neither — set on one alone, the suite throws at registration. The suite
|
|
34
|
+
* closes it once its cases have run.
|
|
35
|
+
*/
|
|
36
|
+
readonly db_state?: DbStateProbe;
|
|
29
37
|
}
|
|
30
38
|
/**
|
|
31
39
|
* What a ledger entry matches: cases by name, or every case on a method —
|
|
@@ -65,7 +73,8 @@ export interface KnownDivergencePath {
|
|
|
65
73
|
*
|
|
66
74
|
* `what_differs` lists the normalized-response paths that differ
|
|
67
75
|
* (`DifferentialDiff.path` — `status`, `headers.<name>`, `session_cookie`,
|
|
68
|
-
* `body.error.data.reason
|
|
76
|
+
* `body.error.data.reason`, and with `db_state` probes the database's,
|
|
77
|
+
* `db.audit_log[0].metadata.reason`), each optionally with the value each side shows
|
|
69
78
|
* (`KnownDivergencePath`). A matched case may differ there and nowhere else.
|
|
70
79
|
* An entry naming cases must still differ on each of them; one naming
|
|
71
80
|
* methods, on at least one of its cases.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"differential.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/differential.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
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,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAM7D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAS7E,OAAO,EAAgC,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CA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F,6DAA6D;AAC7D,MAAM,WAAW,8BAA8B;IAC9C,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC/C,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IACvE,oEAAoE;IACpE,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,kEAAkE;IAClE,QAAQ,CAAC,aAAa,EAAE,uBAAuB,CAAC;IAChD;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,uBAAuB,CAAC;IACtD,4EAA4E;IAC5E,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACjD,oDAAoD;IACpD,QAAQ,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC5D,wEAAwE;IACxE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAgBD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,6BAA6B,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"}
|
|
@@ -27,6 +27,14 @@ import '../assert_dev_env.js';
|
|
|
27
27
|
* letting a server choose would read as a `content-encoding` and `vary`
|
|
28
28
|
* difference on every case.
|
|
29
29
|
*
|
|
30
|
+
* With a `db_state` probe on both backends (`create_db_state_probe`), each
|
|
31
|
+
* case also compares what it left in the databases: each probe marks the
|
|
32
|
+
* audit sequence before the case's fixture and reads the normalized state
|
|
33
|
+
* after its answer (`normalize_db_state`), and the two states' differences
|
|
34
|
+
* join the answer's under `db.` (`diff_db_states`), so a write one backend
|
|
35
|
+
* makes and the other doesn't fails the case like an answer would. Both
|
|
36
|
+
* backends must then be on PostgreSQL the test process reaches.
|
|
37
|
+
*
|
|
30
38
|
* A difference that is tracked and accepted goes in the **known-divergence
|
|
31
39
|
* ledger** (`KnownDivergence`), matched by case names or by methods, naming
|
|
32
40
|
* the paths that differ (`what_differs`), each optionally with the value each
|
|
@@ -47,9 +55,10 @@ import '../assert_dev_env.js';
|
|
|
47
55
|
*
|
|
48
56
|
* @module
|
|
49
57
|
*/
|
|
50
|
-
import { assert, describe, test } from 'vitest';
|
|
58
|
+
import { afterAll, assert, describe, test } from 'vitest';
|
|
51
59
|
import { is_ws_conformance_case, resolve_conformance_rpc_endpoints, send_conformance_case } from './conformance_table.js';
|
|
52
60
|
import { diff_differential_responses, differential_path_covers, format_differential_diffs, normalize_differential_response } from './differential_normalize.js';
|
|
61
|
+
import { diff_db_states } from './db_state_diff.js';
|
|
53
62
|
/**
|
|
54
63
|
* Headers every HTTP request the differential sends carries, beneath the
|
|
55
64
|
* principal's: `accept-encoding: identity`, so each backend answers
|
|
@@ -136,17 +145,29 @@ export const describe_differential_conformance_tests = (options) => {
|
|
|
136
145
|
throw new Error(`differential: backend '${(a.ws ? b : a).name}' has no ws target while ` +
|
|
137
146
|
`'${(a.ws ? a : b).name}' does — set ws on both backends or neither.`);
|
|
138
147
|
}
|
|
148
|
+
if ((a.db_state === undefined) !== (b.db_state === undefined)) {
|
|
149
|
+
throw new Error(`differential: backend '${(a.db_state ? b : a).name}' has no db_state probe while ` +
|
|
150
|
+
`'${(a.db_state ? a : b).name}' does — set db_state on both backends or neither.`);
|
|
151
|
+
}
|
|
139
152
|
const over_ws = a.ws !== undefined;
|
|
140
153
|
const cases = over_ws ? options.cases.filter(is_ws_conformance_case) : options.cases;
|
|
141
|
-
const send = async (backend, c) =>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
154
|
+
const send = async (backend, c) => {
|
|
155
|
+
const mark = backend.db_state ? await backend.db_state.mark() : null;
|
|
156
|
+
const response = normalize_differential_response(await send_conformance_case(c, {
|
|
157
|
+
fixture: await backend.setup_test(),
|
|
158
|
+
surface_source,
|
|
159
|
+
...(principals && { principals }),
|
|
160
|
+
resolved_rpc_endpoints,
|
|
161
|
+
request_headers: DIFFERENTIAL_REQUEST_HEADERS,
|
|
162
|
+
...(backend.ws && { ws: backend.ws })
|
|
163
|
+
}), options.session_options.cookie_name);
|
|
164
|
+
const db_state = backend.db_state && mark ? await backend.db_state.read(mark) : null;
|
|
165
|
+
return { response, db_state };
|
|
166
|
+
};
|
|
149
167
|
describe(options.suite_name ?? 'differential conformance', () => {
|
|
168
|
+
afterAll(async () => {
|
|
169
|
+
await Promise.all([a.db_state?.close(), b.db_state?.close()]);
|
|
170
|
+
});
|
|
150
171
|
// per entry: the cases it matched, the ones that ran to a diff, and
|
|
151
172
|
// whether any of them showed it
|
|
152
173
|
const matched = new Map();
|
|
@@ -163,8 +184,11 @@ export const describe_differential_conformance_tests = (options) => {
|
|
|
163
184
|
? `${c.name} [known: ${known.map((d) => d.tracking_id).join(', ')}]`
|
|
164
185
|
: c.name;
|
|
165
186
|
test(label, async () => {
|
|
166
|
-
const [
|
|
167
|
-
const diffs = diff_differential_responses(
|
|
187
|
+
const [sent_a, sent_b] = await Promise.all([send(a, c), send(b, c)]);
|
|
188
|
+
const diffs = diff_differential_responses(sent_a.response, sent_b.response);
|
|
189
|
+
if (sent_a.db_state && sent_b.db_state) {
|
|
190
|
+
diffs.push(...diff_db_states(sent_a.db_state, sent_b.db_state));
|
|
191
|
+
}
|
|
168
192
|
for (const d of known) {
|
|
169
193
|
const names = ran.get(d) ?? new Set();
|
|
170
194
|
names.add(c.name);
|
|
@@ -134,6 +134,18 @@ export interface DifferentialDiff {
|
|
|
134
134
|
readonly a: unknown;
|
|
135
135
|
readonly b: unknown;
|
|
136
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* Every place two JSON values differ, one entry per leaf path under `path`,
|
|
139
|
+
* by the rules `DifferentialDiff` describes — what
|
|
140
|
+
* `diff_differential_responses` runs over two bodies, for comparing any other
|
|
141
|
+
* normalized value the same way.
|
|
142
|
+
*
|
|
143
|
+
* @param path - the root path the entries are named under
|
|
144
|
+
* @param a - one side's value
|
|
145
|
+
* @param b - the other's
|
|
146
|
+
* @returns the differences, empty when the values are equal
|
|
147
|
+
*/
|
|
148
|
+
export declare const diff_differential_values: (path: string, a: unknown, b: unknown) => Array<DifferentialDiff>;
|
|
137
149
|
/**
|
|
138
150
|
* Every place two normalized responses differ, in a stable order: status,
|
|
139
151
|
* then header names, then the session cookie's effect, then the body
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"differential_normalize.d.ts","sourceRoot":"","sources":["../../../src/lib/testing/cross_backend/differential_normalize.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,EAEN,KAAK,mBAAmB,EACxB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACpC,mBAAmB;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,mEAAmE;IACnE,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,mBAAmB,GAAG,cAAc,CAAC;CAC9D;AAED,gEAAgE;AAChE,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MA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AAM,+BAA+B,GAC3C,UAAU,uBAAuB,EACjC,qBAAqB,MAAM,KACzB,oBA4CF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC;CACpB;AA6BD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB,GACpC,MAAM,MAAM,EACZ,GAAG,OAAO,EACV,GAAG,OAAO,KACR,KAAK,CAAC,gBAAgB,CAIxB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,GACvC,GAAG,oBAAoB,EACvB,GAAG,oBAAoB,KACrB,KAAK,CAAC,gBAAgB,CAexB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,MAAM,EAAE,MAAM,MAAM,KAAG,OAEoB,CAAC;AAE9F;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACrC,OAAO,aAAa,CAAC,gBAAgB,CAAC,EACtC,QAAQ;IAAE,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,KAChD,MAOU,CAAC"}
|
|
@@ -110,6 +110,22 @@ const diff_values = (path, a, b, out) => {
|
|
|
110
110
|
if (!Object.is(a, b))
|
|
111
111
|
out.push({ path, a, b });
|
|
112
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Every place two JSON values differ, one entry per leaf path under `path`,
|
|
115
|
+
* by the rules `DifferentialDiff` describes — what
|
|
116
|
+
* `diff_differential_responses` runs over two bodies, for comparing any other
|
|
117
|
+
* normalized value the same way.
|
|
118
|
+
*
|
|
119
|
+
* @param path - the root path the entries are named under
|
|
120
|
+
* @param a - one side's value
|
|
121
|
+
* @param b - the other's
|
|
122
|
+
* @returns the differences, empty when the values are equal
|
|
123
|
+
*/
|
|
124
|
+
export const diff_differential_values = (path, a, b) => {
|
|
125
|
+
const out = [];
|
|
126
|
+
diff_values(path, a, b, out);
|
|
127
|
+
return out;
|
|
128
|
+
};
|
|
113
129
|
/**
|
|
114
130
|
* Every place two normalized responses differ, in a stable order: status,
|
|
115
131
|
* then header names, then the session cookie's effect, then the body
|
|
@@ -45,7 +45,6 @@ import { ConnectionRegistry } from '../../actions/connection_registry.js';
|
|
|
45
45
|
import { RoomRegistry } from '../../actions/room_registry.js';
|
|
46
46
|
import type { AppDeps } from '../../auth/deps.js';
|
|
47
47
|
import type { DaemonTokenState } from '../../auth/daemon_token.js';
|
|
48
|
-
import type { NotificationSender } from '../../auth/role_grant_offer_notifications.js';
|
|
49
48
|
import type { RpcEndpointSpec } from '../../http/surface.js';
|
|
50
49
|
/**
|
|
51
50
|
* The spine binary's room registry over `connections`: exclusive — one seat
|
|
@@ -66,12 +65,6 @@ export interface FullSpineMountOptions {
|
|
|
66
65
|
* state satisfies it.
|
|
67
66
|
*/
|
|
68
67
|
readonly daemon_token_state: DaemonTokenState;
|
|
69
|
-
/**
|
|
70
|
-
* WS notification sender for the role-grant-offer fan-out. Pass the SAME
|
|
71
|
-
* `ConnectionRegistry` the WS endpoint registers connections against
|
|
72
|
-
* (the registry is the fan-out target). Omitted for enumeration.
|
|
73
|
-
*/
|
|
74
|
-
readonly notification_sender?: NotificationSender | null;
|
|
75
68
|
/**
|
|
76
69
|
* The room registry the room verbs and `_testing_room_evict` run on — built
|
|
77
70
|
* by `create_spine_room_registry` over the SAME `ConnectionRegistry` the WS
|
|
@@ -90,10 +83,10 @@ export interface FullSpineMountOptions {
|
|
|
90
83
|
* Mirrors the previous inline assembly in `testing_spine_server.ts` exactly —
|
|
91
84
|
* `session_options` is pinned to `spine_session_options` (the binary's cookie
|
|
92
85
|
* config) and `roles` to `spine_roles` (carrying `cell_editor`), so the only
|
|
93
|
-
* runtime-varying inputs are the daemon-token state
|
|
86
|
+
* runtime-varying inputs are the daemon-token state and the room registry.
|
|
94
87
|
*
|
|
95
88
|
* @param deps - the backend `AppDeps` (stub deps suffice for method enumeration)
|
|
96
|
-
* @param options - daemon-token state + optional
|
|
89
|
+
* @param options - daemon-token state + optional room registry
|
|
97
90
|
* @returns every `RpcAction` the binary exposes, in mount order
|
|
98
91
|
*/
|
|
99
92
|
export declare const build_full_spine_rpc_actions: (deps: AppDeps, options: FullSpineMountOptions) => Array<RpcAction>;
|
|
@@ -122,7 +115,7 @@ export interface FullSpineMount {
|
|
|
122
115
|
* (never dispatched) on Rust.
|
|
123
116
|
*
|
|
124
117
|
* @param deps - the backend `AppDeps`
|
|
125
|
-
* @param options - daemon-token state + optional
|
|
118
|
+
* @param options - daemon-token state + optional room registry
|
|
126
119
|
* @returns the RPC and WS action lists, built once and sharing handler instances
|
|
127
120
|
*/
|
|
128
121
|
export declare const build_full_spine_mount: (deps: AppDeps, options: FullSpineMountOptions) => FullSpineMount;
|
|
@@ -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;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,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;
|
|
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;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const create_spine_room_registry = (connections) => new RoomRegistry(conn
|
|
|
58
58
|
* Mirrors the previous inline assembly in `testing_spine_server.ts` exactly —
|
|
59
59
|
* `session_options` is pinned to `spine_session_options` (the binary's cookie
|
|
60
60
|
* config) and `roles` to `spine_roles` (carrying `cell_editor`), so the only
|
|
61
|
-
* runtime-varying inputs are the daemon-token state
|
|
61
|
+
* runtime-varying inputs are the daemon-token state and the room registry.
|
|
62
62
|
*
|
|
63
63
|
* @param deps - the backend `AppDeps` (stub deps suffice for method enumeration)
|
|
64
|
-
* @param options - daemon-token state + optional
|
|
64
|
+
* @param options - daemon-token state + optional room registry
|
|
65
65
|
* @returns every `RpcAction` the binary exposes, in mount order
|
|
66
66
|
*/
|
|
67
67
|
export const build_full_spine_rpc_actions = (deps, options) => build_full_spine_actions(deps, options).rpc_actions;
|
|
@@ -77,7 +77,7 @@ const build_full_spine_actions = (deps, options) => {
|
|
|
77
77
|
limiter: new RoomRateLimiter(DEFAULT_ROOM_RATE_LIMIT)
|
|
78
78
|
});
|
|
79
79
|
const actions = [
|
|
80
|
-
...create_standard_rpc_actions(
|
|
80
|
+
...create_standard_rpc_actions(deps, { roles: spine_roles }),
|
|
81
81
|
...create_testing_actions(deps, {
|
|
82
82
|
session_options: spine_session_options,
|
|
83
83
|
daemon_token_state: options.daemon_token_state,
|
|
@@ -141,7 +141,7 @@ const build_full_spine_actions = (deps, options) => {
|
|
|
141
141
|
* (never dispatched) on Rust.
|
|
142
142
|
*
|
|
143
143
|
* @param deps - the backend `AppDeps`
|
|
144
|
-
* @param options - daemon-token state + optional
|
|
144
|
+
* @param options - daemon-token state + optional room registry
|
|
145
145
|
* @returns the RPC and WS action lists, built once and sharing handler instances
|
|
146
146
|
*/
|
|
147
147
|
export const build_full_spine_mount = (deps, options) => {
|
|
@@ -4,7 +4,8 @@ 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
6
|
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
7
|
-
import { type CreateTestAppOptions, type SuiteAppOptions } from '../
|
|
7
|
+
import { type CreateTestAppOptions, type SuiteAppOptions } from '../test_app.js';
|
|
8
|
+
import { type DbInvariantExclusions } from '../db_invariant_queries.js';
|
|
8
9
|
import { type RpcEndpointsSuiteOption } from '../rpc_helpers.js';
|
|
9
10
|
import { type BackendCapabilities } from './capabilities.js';
|
|
10
11
|
import { type SetupTest, type ExtraAccountSpec } from './setup.js';
|
|
@@ -49,9 +50,17 @@ export interface InProcessSetupOptions extends CreateTestAppOptions {
|
|
|
49
50
|
* `_testing_reset` cradle so suite bodies read
|
|
50
51
|
* `fixture.extra_accounts[username]` uniformly regardless of transport.
|
|
51
52
|
*
|
|
53
|
+
* The keeper holds `options.roles`, or `create_test_app`'s default when
|
|
54
|
+
* omitted (`DEFAULT_TEST_KEEPER_ROLES` — keeper and admin, as a production
|
|
55
|
+
* bootstrap and the cross-process reset seed it). The database invariant
|
|
56
|
+
* check is the test app's: registered when the fixture is built inside a
|
|
57
|
+
* test, less `options.exclude_db_invariants`, and run on demand by
|
|
58
|
+
* `fixture.assert_db_invariants`. The exclusions are validated here, before
|
|
59
|
+
* any test runs.
|
|
60
|
+
*
|
|
52
61
|
* The describe-level `auth_integration_truncate_tables` / WASM database
|
|
53
|
-
* cache lifecycle stays in `create_default_db_factory` /
|
|
54
|
-
* (`testing/
|
|
62
|
+
* cache lifecycle stays in `create_default_db_factory` (`testing/db.ts`) /
|
|
63
|
+
* `create_describe_db` (`testing/describe_db.ts`) — `default_in_process_setup` doesn't manage db state
|
|
55
64
|
* beyond what `create_test_app` already does.
|
|
56
65
|
*/
|
|
57
66
|
export declare const default_in_process_setup: (options: InProcessSetupOptions) => SetupTest;
|
|
@@ -75,14 +84,10 @@ export interface DefaultInProcessSuiteOptions {
|
|
|
75
84
|
app_options?: SuiteAppOptions;
|
|
76
85
|
/**
|
|
77
86
|
* Additional roles to grant the bootstrapped keeper alongside
|
|
78
|
-
* `ROLE_KEEPER`
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
* Admin-suite consumers pass `[ROLE_ADMIN]` so the default keeper
|
|
83
|
-
* can hit admin-gated RPC methods.
|
|
84
|
-
* `describe_standard_admin_integration_tests` and
|
|
85
|
-
* `describe_audit_completeness_tests` need this.
|
|
87
|
+
* `DEFAULT_TEST_KEEPER_ROLES` (`ROLE_KEEPER` and `ROLE_ADMIN`, what a
|
|
88
|
+
* production bootstrap grants) — additive, never replaces. Pass extras
|
|
89
|
+
* here for suites that need additional role coverage; listing
|
|
90
|
+
* `ROLE_ADMIN` again is harmless.
|
|
86
91
|
*/
|
|
87
92
|
extra_keeper_roles?: Array<string>;
|
|
88
93
|
/**
|
|
@@ -103,6 +108,11 @@ export interface DefaultInProcessSuiteOptions {
|
|
|
103
108
|
* `CrossProcessSetupOptions.reject_unknown_audit_metadata_keys`.
|
|
104
109
|
*/
|
|
105
110
|
reject_unknown_audit_metadata_keys?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Database invariants left unchecked after each test, each with its reason
|
|
113
|
+
* — see `CrossProcessSetupOptions.exclude_db_invariants`.
|
|
114
|
+
*/
|
|
115
|
+
exclude_db_invariants?: DbInvariantExclusions;
|
|
106
116
|
/**
|
|
107
117
|
* Pre-built `AppSurfaceSpec` — overrides the default which calls
|
|
108
118
|
* `create_test_app_surface_spec` against the same factory inputs.
|
|
@@ -133,7 +143,7 @@ export interface DefaultInProcessSuiteOptions {
|
|
|
133
143
|
* describe_standard_admin_integration_tests({
|
|
134
144
|
* ...default_in_process_suite_options({
|
|
135
145
|
* session_options, create_route_specs, rpc_endpoints,
|
|
136
|
-
* extra_keeper_roles: [
|
|
146
|
+
* extra_keeper_roles: [MY_APP_ROLE],
|
|
137
147
|
* }),
|
|
138
148
|
* roles,
|
|
139
149
|
* });
|
|
@@ -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;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,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,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiBnE,OAAO,EAEN,KAAK,oBAAoB,EACzB,KAAK,eAAe,EAEpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAEN,KAAK,qBAAqB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAKN,KAAK,uBAAuB,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,OAAO,EAMN,KAAK,SAAS,EAEd,KAAK,gBAAgB,EACrB,MAAM,YAAY,CAAC;AAepB;;;;;GAKG;AACH,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IAClE;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