testing/cross_backend/capabilities.ts view source
BackendCapabilities Optional behaviors a backend may support. Each flag's TSDoc names the tests that gate on it; add a new flag here before referencing it from a suite body, and document the gating tests inline.
bearer_auth
Bearer token auth (Authorization: Bearer <token>) is wired through
the backend's middleware stack. Gates the bearer-token cases in
describe_standard_integration_tests and describe_rate_limiting_tests.
booleantrusted_proxy
Trusted-proxy XFF parsing is wired (X-Forwarded-For etc.). Gates
the proxy-resolution cases in describe_standard_integration_tests
and the future cross-process proxy integration suite.
booleanlogin_rate_limit
Per-account login rate limiting is wired. Gates the per-account rate-limit cases in describe_rate_limiting_tests.
booleanws
WebSocket transport is reachable end-to-end. Gates the cross-process
WS round-trip suite; the in-process describe_ws_round_trip_tests
runs against register_action_ws directly and ignores this flag.
booleansse
SSE transport is reachable end-to-end. Gates the cross-process SSE
close-detection cases; in-process SSE uses the
on_audit_event hook and ignores this flag.
booleanin_process_only
Test has direct access to backend-internal state (keyring for
signing cookies, DB pool for FK-structural raw queries). Always
true for in-process Hono via default_in_process_setup; always
false cross-process. Gates the 3 keyring reads in
describe_standard_integration_tests (expired-cookie generation)
and the FK-structural raw query in describe_audit_completeness_tests.
boolean