Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaloAltoNetworks/pan-mcp-relay
/ functions
Functions
304 in github.com/PaloAltoNetworks/pan-mcp-relay
⨍
Functions
304
◇
Types & classes
45
↳
Endpoints
28
Function
test_failing_tool_exception_scenario
Test failing tool that throws exceptions.
tests/test_downstream_mcp_client.py:884
Function
test_fixed_response_tool_all_types_scenario
Test fixed response tool with all response types.
tests/test_downstream_mcp_client.py:936
Function
test_get_all_tools
Test retrieving all tools regardless of state.
tests/test_tool_registry.py:349
Function
test_get_argument_descriptions_empty_schema
Test argument descriptions with empty input schema.
tests/test_tool.py:173
Function
test_get_argument_descriptions_missing_description
Test argument descriptions when parameter has no description.
tests/test_tool.py:159
Function
test_get_argument_descriptions_no_properties
Test argument descriptions with schema without properties.
tests/test_tool.py:146
Function
test_get_argument_descriptions_with_echo_params
Test argument descriptions generation with echo tool parameters.
tests/test_tool.py:126
Function
test_get_available_tools
Test retrieving available tools.
tests/test_tool_registry.py:334
Function
test_get_registry_stats
Test getting registry statistics.
tests/test_tool_registry.py:479
Function
test_get_registry_stats_fresh_registry
Test registry statistics with fresh registry.
tests/test_tool_registry.py:502
Function
test_get_server_tool_map
Test grouping tools by server name.
tests/test_tool_registry.py:407
Function
test_get_server_tool_map_empty_registry
Test server tool map with empty registry.
tests/test_tool_registry.py:434
Function
test_get_server_tool_map_json
Test getting server tool map as JSON.
tests/test_tool_registry.py:443
Function
test_get_server_tool_map_json_serialization_error
Test server tool map JSON with serialization error.
tests/test_tool_registry.py:466
Function
test_get_tool_by_hash_empty_hash
Test retrieving tool by empty hash.
tests/test_tool_registry.py:387
Function
test_get_tool_by_hash_found
Test retrieving tool by hash when tool exists.
tests/test_tool_registry.py:365
Function
test_get_tool_by_hash_invalid_type
Test retrieving tool by hash with invalid type.
tests/test_tool_registry.py:396
Function
test_get_tool_by_hash_not_found
Test retrieving tool by hash when tool doesn't exist.
tests/test_tool_registry.py:377
Method
test_http_mcp_server__with_valid_data__parses_correctly
Tests that HttpMcpServer parses valid data.
tests/test_configuration.py:226
Method
test_http_mcp_server_base__model_post_init__infers_type
Tests that the server type is inferred from the URL if not provided.
tests/test_configuration.py:242
Function
test_init
Test SecurityScanner initialization.
tests/test_security_scanner.py:32
Method
test_init_no_mcp_servers
Test initialization with no MCP servers.
tests/test_pan_security_relay.py:76
Method
test_init_success
Test successful initialization.
tests/test_pan_security_relay.py:65
Method
test_init_too_many_mcp_servers
Test initialization with too many MCP servers.
tests/test_pan_security_relay.py:86
Function
test_init_with_empty_message
Test exception initialization with empty message.
tests/test_exceptions.py:32
Function
test_init_with_message_only
Test exception initialization with message only.
tests/test_exceptions.py:24
Method
test_initialize
Test the _initialize method.
tests/test_pan_security_relay.py:99
Function
test_initialize_echo_server_success
Test successful initialization of echo server connection.
tests/test_downstream_mcp_client.py:239
Function
test_initialize_server_environment_variables
Test server initialization with environment variable handling.
tests/test_downstream_mcp_client.py:305
Function
test_initialize_sse_server_failure
Test SSE server initialization failure handling.
tests/test_downstream_mcp_client.py:347
Function
test_initialize_sse_server_missing_url
Test that ValueError is raised for SSE connection without url.
tests/test_downstream_mcp_client.py:290
Function
test_initialize_sse_server_success
Test successful initialization of SSE server connection.
tests/test_downstream_mcp_client.py:265
Function
test_initialize_stdio_server_failure
Test server initialization failure handling.
tests/test_downstream_mcp_client.py:327
Function
test_internal_tool_creation_with_hash_generation
Test InternalTool creation and SHA256 hash generation for registry management.
tests/test_tool.py:276
Function
test_internal_tool_hash_computation_for_deduplication
Test SHA256 hash computation for tool deduplication across servers.
tests/test_tool.py:288
Function
test_internal_tool_hash_consistency_across_instances
Test that identical tools produce identical hashes for caching.
tests/test_tool.py:305
Function
test_internal_tool_hash_uniqueness_for_different_tools
Test that different tools produce different hashes for proper separation.
tests/test_tool.py:313
Function
test_internal_tool_hash_with_complex_schema
Test hash computation with complex tool schema.
tests/test_tool.py:326
Function
test_internal_tool_hash_with_unicode_content
Test hash computation with unicode characters in tool fields.
tests/test_tool.py:397
Function
test_internal_tool_inherits_base_tool_functionality
Test that InternalTool inherits BaseTool functionality.
tests/test_tool.py:368
Function
test_internal_tool_model_post_init_hash_generation
Test that model_post_init is called during initialization for hash generation.
tests/test_tool.py:359
Function
test_internal_tool_with_empty_input_schema_for_simple_tool
Test InternalTool with empty input schema for simple tool.
tests/test_tool.py:383
Function
test_invalid_api_key_error
Test invalid api key
tests/test_security_scanner.py:231
Function
test_is_registry_outdated_exactly_expired
Test is_registry_outdated at exact expiry time.
tests/test_tool_registry.py:321
Function
test_is_registry_outdated_expired
Test is_registry_outdated with expired registry.
tests/test_tool_registry.py:308
Function
test_is_registry_outdated_fresh
Test is_registry_outdated with fresh registry.
tests/test_tool_registry.py:295
Function
test_len_operator
Test __len__ operator for registry.
tests/test_tool_registry.py:546
Function
test_list_tools_external_server_success
Test successful tool listing from external test server.
tests/test_downstream_mcp_client.py:361
Method
test_list_tools_registry_outdated
Test _list_tools when tool registry is outdated.
tests/test_pan_security_relay.py:145
Method
test_list_tools_registry_updated
Test _list_tools when tool registry is up to date.
tests/test_pan_security_relay.py:125
Function
test_list_tools_server_empty_response
Test tool listing with empty response from server.
tests/test_downstream_mcp_client.py:397
Function
test_list_tools_server_not_initialized
Test tool listing when server is not initialized.
tests/test_downstream_mcp_client.py:388
Function
test_make_validation_aliases__when_called__generates_correct_aliases
Tests that make_validation_aliases generates a correct set of aliases.
tests/test_configuration.py:45
Method
test_mcp_relay_config__model_post_init__expands_env_vars
Tests that model_post_init expands environment variables in string fields.
tests/test_configuration.py:134
Method
test_mcp_relay_config__security_scanner_env__returns_correct_dict
Tests that security_scanner_env returns the correct dictionary for the scanner.
tests/test_configuration.py:150
Method
test_mcp_relay_config__with_aliases__parses_correctly
Tests that field aliases are correctly handled during parsing.
tests/test_configuration.py:173
Method
test_mcp_relay_config__with_defaults__has_correct_values
Tests that a default McpRelayConfig has the expected default values.
tests/test_configuration.py:68
Method
test_mcp_relay_config__with_invalid_data__raises_validation_error
Tests that McpRelayConfig raises ValidationError for invalid field values.
tests/test_configuration.py:125
Method
test_mcp_relay_config__with_valid_data__parses_correctly
Tests that McpRelayConfig parses a valid data dictionary.
tests/test_configuration.py:90
Function
test_mixed_external_tool_states_handling
Test handling of external tools with mixed states.
tests/test_tool.py:808
Function
test_mixed_tool_states_handling
Test registry handling of tools with different states.
tests/test_tool_registry.py:683
Function
test_mixed_tools_workflow_scenario
Test workflow using multiple different tools in sequence.
tests/test_downstream_mcp_client.py:973
Function
test_multiple_servers_scenario
Test scenario with multiple external servers.
tests/test_downstream_mcp_client.py:775
Function
test_passthrough_tool_scenario
Test passthrough tool that returns input unchanged.
tests/test_downstream_mcp_client.py:852
Function
test_perform_scan_error_empty_content_list
Test when scan_result.content is an empty list.
tests/test_security_scanner.py:166
Function
test_perform_scan_error_initialize_raises_exception
Test when initialize raises an exception.
tests/test_security_scanner.py:141
Function
test_perform_scan_error_scan_result_is_error
Test when scan_result.isError is True.
tests/test_security_scanner.py:196
Function
test_perform_scan_success_allow
Test successful security scan with ALLOW action.
tests/test_security_scanner.py:92
Function
test_perform_scan_success_block
Test successful security scan with BLOCK action.
tests/test_security_scanner.py:43
Function
test_performance_considerations_large_tool_set
Test registry performance with large tool set.
tests/test_tool_registry.py:643
Function
test_registry_workflow_integration
Test complete registry workflow integration.
tests/test_tool_registry.py:585
Function
test_relay_tool_creation_for_llm_presentation
Test RelayTool creation for LLM presentation.
tests/test_tool.py:448
Function
test_relay_tool_format_for_llm_basic_tool
Test format_for_llm method with basic tool for LLM consumption.
tests/test_tool.py:458
Function
test_relay_tool_format_for_llm_multiline_formatting_for_llm
Test that format_for_llm produces properly formatted multiline output for LLM consumption.
tests/test_tool.py:521
Function
test_relay_tool_format_for_llm_no_arguments_simple_tool
Test format_for_llm with simple tool that has no arguments.
tests/test_tool.py:488
Function
test_relay_tool_format_for_llm_string_schema_tool
Test format_for_llm with string-type schema.
tests/test_tool.py:505
Function
test_relay_tool_format_for_llm_with_complex_descriptions
Test format_for_llm with complex parameter descriptions.
tests/test_tool.py:557
Function
test_relay_tool_format_for_llm_with_parameters
Test format_for_llm method showing required vs optional parameters.
tests/test_tool.py:473
Function
test_relay_tool_inherits_base_tool_functionality
Test that RelayTool inherits BaseTool functionality.
tests/test_tool.py:543
Function
test_relay_tool_with_different_states
Test RelayTool with different states for compliance management.
tests/test_tool.py:595
Function
test_repr_operator
Test __repr__ operator for registry.
tests/test_tool_registry.py:569
Function
test_server_config
Create generic test server configuration.
tests/test_downstream_mcp_client.py:53
Function
test_server_error_recovery_scenario
Test server error recovery and retry scenarios.
tests/test_downstream_mcp_client.py:751
Function
test_should_block
Test should block function from security scanner
tests/test_security_scanner.py:310
Method
test_shutdown
Test the shutdown method.
tests/test_pan_security_relay.py:106
Function
test_slow_response_tool_performance_scenario
Test slow response tool with various delay configurations.
tests/test_downstream_mcp_client.py:904
Method
test_sse_mcp_server__with_valid_data__parses_correctly
Tests that SseMcpServer parses valid data.
tests/test_configuration.py:208
Method
test_stdio_mcp_server__with_valid_data__parses_correctly
Tests that StdioMcpServer parses valid data.
tests/test_configuration.py:188
Function
test_str_with_message_only
Test string representation with message only.
tests/test_exceptions.py:39
Function
test_to_mcp_format_with_message_and_error_type
Test to_mcp_format method with message and error type.
tests/test_exceptions.py:47
Function
test_to_mcp_tool_conversion_for_relay
Test conversion to standard MCP Tool for relay operations.
tests/test_tool.py:183
Function
test_tool_registry_edge_cases
Test edge cases for tool registry operations.
tests/test_tool_registry.py:718
Function
test_tool_registry_initialization_custom_expiry
Test ToolRegistry initialization with custom cache expiry.
tests/test_tool_registry.py:140
Function
test_tool_registry_initialization_default_expiry
Test ToolRegistry initialization with default cache expiry.
tests/test_tool_registry.py:129
Function
test_tool_registry_initialization_invalid_expiry
Test ToolRegistry initialization with invalid cache expiry.
tests/test_tool_registry.py:148
Function
test_tool_registry_initialization_logging
Test that initialization logs cache expiry information.
tests/test_tool_registry.py:163
Function
test_update_available_tools_filtering
Test that _update_available_tools filters enabled tools correctly.
tests/test_tool_registry.py:241
Function
test_update_hash_mapping
Test that _update_hash_mapping creates correct hash mappings.
tests/test_tool_registry.py:263
Function
test_update_hash_mapping_with_empty_hash
Test hash mapping with tool that has empty hash.
tests/test_tool_registry.py:278
Function
test_update_registry_exception_handling
Test registry update exception handling.
tests/test_tool_registry.py:209
← previous
next →
201–300 of 304, ranked by callers