Orchestrata Ultimate › Tests › Reference › kernel › test_cli_client

Tests reference — tests/kernel/test_cli_client.py

Module of tests/kernel, split out because the directory page would be too large.

Prose pending.

tests/kernel/test_cli_client.py

source · 15 tests · 247 lines

Tests for kernel/cli_client.py — the SPEC-000 CLI's thin gateway client.

Covers: core.base.traces, gateway.auth, gateway.config, gateway.server, kernel.cli_client

Kind Name Line Description
class TestLoadDotenv 116 load_dotenv is idempotent, setdefault-only .env loading.
method TestLoadDotenv.test_does_not_raise_and_is_idempotent 119
method TestLoadDotenv.test_jwt_secret_present_after_load 123
class TestGatewayUri 135 Pure resolution logic — CXP_WS_URI, then GATEWAY_HOST/PORT, then the
method TestGatewayUri.test_explicit_cxp_ws_uri_wins 139
method TestGatewayUri.test_host_and_port_combine_when_no_cxp_ws_uri 145
method TestGatewayUri.test_empty_env_falls_back_to_localhost_8765 151
method TestGatewayUri.test_cxp_ws_uri_takes_priority_over_host_port 154
method TestGatewayUri.test_partial_env_uses_default_host 162
method TestGatewayUri.test_none_env_reads_process_environment 165
class TestMintToken 172 _mint_token signs a short-lived JWT the real gateway accepts.
method TestMintToken.test_token_decodes_with_the_gateway_secret 175
method TestMintToken.test_default_subject 183
class TestGatewayRpcRoundTrip 191 Real request/response round-trip over a live gateway.
method TestGatewayRpcRoundTrip.test_ping_round_trip 194
method TestGatewayRpcRoundTrip.test_round_trip_carries_params 200
method TestGatewayRpcRoundTrip.test_gateway_info_returns_dict_result 210
method TestGatewayRpcRoundTrip.test_unknown_method_raises_clean_click_exception 217
class TestGatewayRpcConnectionRefused 230 The unreachable-gateway error path (REQ-000-097: clean exception,
method TestGatewayRpcConnectionRefused.test_connection_refused_raises_clean_click_exception 234