testing/cross_backend/credential_conformance_wire.ts view source
CredentialConformanceWireCrossTestOptions import type {CredentialConformanceWireCrossTestOptions} from '@fuzdev/fuz_app/testing/cross_backend/credential_conformance_wire.js'; Options for describe_credential_conformance_wire_cross_tests.
setup_test
Per-test fixture producer (cross-process), seeding the
CREDENTIAL_SESSION_ACCOUNT_USERNAME (with
CREDENTIAL_SESSION_ACCOUNT_PASSWORD) and
CREDENTIAL_BEARER_ACCOUNT_USERNAME extra_accounts, and no
extra_actors. Where the backend's WebSocket upgrade is role-gated, both
accounts and the keeper (extra_keeper_roles) hold its roles.
type (): Promise<TestFixture>
Promise<TestFixture>capabilities
ws gates the upgrade leg, ws_account_actions its account_verify
frame on each accepted socket.
type BackendCapabilities
base_url
Base URL the spawned backend is reachable at (e.g. http://localhost:1178).
type string
cookie_name
The spine's session cookie name (handle.config.cookie_name).
type string
cookie_keys
The backend's SECRET_FUZ_COOKIE_KEYS value
(handle.config.env.SECRET_FUZ_COOKIE_KEYS) — the suite signs the cookie
spellings the table names with its primary key.
type string
daemon_token
A valid daemon token (keeper) — handle.daemon_token.
type string
rpc_path?
JSON-RPC endpoint path. Default SPINE_RPC_PATH.
type string
ws_path?
WebSocket endpoint path. Default SPINE_WS_PATH.
type string
login_path?
REST login route path. Default SPINE_ACCOUNT_LOGIN_PATH.
type string