Orchestrata Ultimate › Tests › Reference › generated_recovery › test_gateway_auth_handler

Tests reference — tests/generated_recovery/test_gateway_auth_handler.py

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

Prose pending.

tests/generated_recovery/test_gateway_auth_handler.py

source · 11 tests · 366 lines

Auto-generated tests for: gateway.auth_handler

Covers: gateway.auth, gateway.auth_handler, gateway.config, gateway.models

Kind Name Line Description
class TestAuthenticateBranches 84 Branch/exception tests for: gateway.auth_handler.authenticate
method TestAuthenticateBranches.test_handles_TimeoutError_L79 110 Line 79: (TimeoutError, AuthenticationError) handler — suppressed.
method TestAuthenticateBranches.test_L87_when_jsonrpc_in_data_true 143 Line 87: condition 'jsonrpc' in data is True.
method TestAuthenticateBranches.test_L87_when_jsonrpc_in_data_false 161 Line 87: condition 'jsonrpc' in data is False.
method TestAuthenticateBranches.test_L100_when_msg_msg_type_messagetype_auth_true 179 Line 100: condition msg.msg_type != MessageType.AUTH is True.
method TestAuthenticateBranches.test_L100_when_msg_msg_type_messagetype_auth_false 196 Line 100: condition msg.msg_type != MessageType.AUTH is False.
class TestHandleJsonrpcAuthBranches 213 Branch/exception tests for: gateway.auth_handler.handle_jsonrpc_auth
method TestHandleJsonrpcAuthBranches.test_L150_when_method_auth_authenticate_true 239 Line 150: condition method == 'auth.authenticate' is True.
method TestHandleJsonrpcAuthBranches.test_L150_when_method_auth_authenticate_false 257 Line 150: condition method == 'auth.authenticate' is False.
method TestHandleJsonrpcAuthBranches.test_L167_when_not_config_allow_anonymous_true 275 Line 167: condition not config.allow_anonymous is True.
method TestHandleJsonrpcAuthBranches.test_L167_when_not_config_allow_anonymous_false 294 Line 167: condition not config.allow_anonymous is False.
class TestTryConnectRedisBranches 313 Branch/exception tests for: gateway.auth_handler.try_connect_redis
method TestTryConnectRedisBranches.test_handles_Exception_L196 332 Line 196: Exception handler — suppressed.
class TestTryConnectNeo4JBranches 341 Branch/exception tests for: gateway.auth_handler.try_connect_graph
method TestTryConnectNeo4JBranches.test_handles_Exception_L208 360 Line 208: Exception handler — suppressed.