MCPcopy Create free account

hub / github.com/PaloAltoNetworks/pan-mcp-relay / functions

Functions304 in github.com/PaloAltoNetworks/pan-mcp-relay

Functiontest_failing_tool_exception_scenario
Test failing tool that throws exceptions.
tests/test_downstream_mcp_client.py:884
Functiontest_fixed_response_tool_all_types_scenario
Test fixed response tool with all response types.
tests/test_downstream_mcp_client.py:936
Functiontest_get_all_tools
Test retrieving all tools regardless of state.
tests/test_tool_registry.py:349
Functiontest_get_argument_descriptions_empty_schema
Test argument descriptions with empty input schema.
tests/test_tool.py:173
Functiontest_get_argument_descriptions_missing_description
Test argument descriptions when parameter has no description.
tests/test_tool.py:159
Functiontest_get_argument_descriptions_no_properties
Test argument descriptions with schema without properties.
tests/test_tool.py:146
Functiontest_get_argument_descriptions_with_echo_params
Test argument descriptions generation with echo tool parameters.
tests/test_tool.py:126
Functiontest_get_available_tools
Test retrieving available tools.
tests/test_tool_registry.py:334
Functiontest_get_registry_stats
Test getting registry statistics.
tests/test_tool_registry.py:479
Functiontest_get_registry_stats_fresh_registry
Test registry statistics with fresh registry.
tests/test_tool_registry.py:502
Functiontest_get_server_tool_map
Test grouping tools by server name.
tests/test_tool_registry.py:407
Functiontest_get_server_tool_map_empty_registry
Test server tool map with empty registry.
tests/test_tool_registry.py:434
Functiontest_get_server_tool_map_json
Test getting server tool map as JSON.
tests/test_tool_registry.py:443
Functiontest_get_server_tool_map_json_serialization_error
Test server tool map JSON with serialization error.
tests/test_tool_registry.py:466
Functiontest_get_tool_by_hash_empty_hash
Test retrieving tool by empty hash.
tests/test_tool_registry.py:387
Functiontest_get_tool_by_hash_found
Test retrieving tool by hash when tool exists.
tests/test_tool_registry.py:365
Functiontest_get_tool_by_hash_invalid_type
Test retrieving tool by hash with invalid type.
tests/test_tool_registry.py:396
Functiontest_get_tool_by_hash_not_found
Test retrieving tool by hash when tool doesn't exist.
tests/test_tool_registry.py:377
Methodtest_http_mcp_server__with_valid_data__parses_correctly
Tests that HttpMcpServer parses valid data.
tests/test_configuration.py:226
Methodtest_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
Functiontest_init
Test SecurityScanner initialization.
tests/test_security_scanner.py:32
Methodtest_init_no_mcp_servers
Test initialization with no MCP servers.
tests/test_pan_security_relay.py:76
Methodtest_init_success
Test successful initialization.
tests/test_pan_security_relay.py:65
Methodtest_init_too_many_mcp_servers
Test initialization with too many MCP servers.
tests/test_pan_security_relay.py:86
Functiontest_init_with_empty_message
Test exception initialization with empty message.
tests/test_exceptions.py:32
Functiontest_init_with_message_only
Test exception initialization with message only.
tests/test_exceptions.py:24
Methodtest_initialize
Test the _initialize method.
tests/test_pan_security_relay.py:99
Functiontest_initialize_echo_server_success
Test successful initialization of echo server connection.
tests/test_downstream_mcp_client.py:239
Functiontest_initialize_server_environment_variables
Test server initialization with environment variable handling.
tests/test_downstream_mcp_client.py:305
Functiontest_initialize_sse_server_failure
Test SSE server initialization failure handling.
tests/test_downstream_mcp_client.py:347
Functiontest_initialize_sse_server_missing_url
Test that ValueError is raised for SSE connection without url.
tests/test_downstream_mcp_client.py:290
Functiontest_initialize_sse_server_success
Test successful initialization of SSE server connection.
tests/test_downstream_mcp_client.py:265
Functiontest_initialize_stdio_server_failure
Test server initialization failure handling.
tests/test_downstream_mcp_client.py:327
Functiontest_internal_tool_creation_with_hash_generation
Test InternalTool creation and SHA256 hash generation for registry management.
tests/test_tool.py:276
Functiontest_internal_tool_hash_computation_for_deduplication
Test SHA256 hash computation for tool deduplication across servers.
tests/test_tool.py:288
Functiontest_internal_tool_hash_consistency_across_instances
Test that identical tools produce identical hashes for caching.
tests/test_tool.py:305
Functiontest_internal_tool_hash_uniqueness_for_different_tools
Test that different tools produce different hashes for proper separation.
tests/test_tool.py:313
Functiontest_internal_tool_hash_with_complex_schema
Test hash computation with complex tool schema.
tests/test_tool.py:326
Functiontest_internal_tool_hash_with_unicode_content
Test hash computation with unicode characters in tool fields.
tests/test_tool.py:397
Functiontest_internal_tool_inherits_base_tool_functionality
Test that InternalTool inherits BaseTool functionality.
tests/test_tool.py:368
Functiontest_internal_tool_model_post_init_hash_generation
Test that model_post_init is called during initialization for hash generation.
tests/test_tool.py:359
Functiontest_internal_tool_with_empty_input_schema_for_simple_tool
Test InternalTool with empty input schema for simple tool.
tests/test_tool.py:383
Functiontest_invalid_api_key_error
Test invalid api key
tests/test_security_scanner.py:231
Functiontest_is_registry_outdated_exactly_expired
Test is_registry_outdated at exact expiry time.
tests/test_tool_registry.py:321
Functiontest_is_registry_outdated_expired
Test is_registry_outdated with expired registry.
tests/test_tool_registry.py:308
Functiontest_is_registry_outdated_fresh
Test is_registry_outdated with fresh registry.
tests/test_tool_registry.py:295
Functiontest_len_operator
Test __len__ operator for registry.
tests/test_tool_registry.py:546
Functiontest_list_tools_external_server_success
Test successful tool listing from external test server.
tests/test_downstream_mcp_client.py:361
Methodtest_list_tools_registry_outdated
Test _list_tools when tool registry is outdated.
tests/test_pan_security_relay.py:145
Methodtest_list_tools_registry_updated
Test _list_tools when tool registry is up to date.
tests/test_pan_security_relay.py:125
Functiontest_list_tools_server_empty_response
Test tool listing with empty response from server.
tests/test_downstream_mcp_client.py:397
Functiontest_list_tools_server_not_initialized
Test tool listing when server is not initialized.
tests/test_downstream_mcp_client.py:388
Functiontest_make_validation_aliases__when_called__generates_correct_aliases
Tests that make_validation_aliases generates a correct set of aliases.
tests/test_configuration.py:45
Methodtest_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
Methodtest_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
Methodtest_mcp_relay_config__with_aliases__parses_correctly
Tests that field aliases are correctly handled during parsing.
tests/test_configuration.py:173
Methodtest_mcp_relay_config__with_defaults__has_correct_values
Tests that a default McpRelayConfig has the expected default values.
tests/test_configuration.py:68
Methodtest_mcp_relay_config__with_invalid_data__raises_validation_error
Tests that McpRelayConfig raises ValidationError for invalid field values.
tests/test_configuration.py:125
Methodtest_mcp_relay_config__with_valid_data__parses_correctly
Tests that McpRelayConfig parses a valid data dictionary.
tests/test_configuration.py:90
Functiontest_mixed_external_tool_states_handling
Test handling of external tools with mixed states.
tests/test_tool.py:808
Functiontest_mixed_tool_states_handling
Test registry handling of tools with different states.
tests/test_tool_registry.py:683
Functiontest_mixed_tools_workflow_scenario
Test workflow using multiple different tools in sequence.
tests/test_downstream_mcp_client.py:973
Functiontest_multiple_servers_scenario
Test scenario with multiple external servers.
tests/test_downstream_mcp_client.py:775
Functiontest_passthrough_tool_scenario
Test passthrough tool that returns input unchanged.
tests/test_downstream_mcp_client.py:852
Functiontest_perform_scan_error_empty_content_list
Test when scan_result.content is an empty list.
tests/test_security_scanner.py:166
Functiontest_perform_scan_error_initialize_raises_exception
Test when initialize raises an exception.
tests/test_security_scanner.py:141
Functiontest_perform_scan_error_scan_result_is_error
Test when scan_result.isError is True.
tests/test_security_scanner.py:196
Functiontest_perform_scan_success_allow
Test successful security scan with ALLOW action.
tests/test_security_scanner.py:92
Functiontest_perform_scan_success_block
Test successful security scan with BLOCK action.
tests/test_security_scanner.py:43
Functiontest_performance_considerations_large_tool_set
Test registry performance with large tool set.
tests/test_tool_registry.py:643
Functiontest_registry_workflow_integration
Test complete registry workflow integration.
tests/test_tool_registry.py:585
Functiontest_relay_tool_creation_for_llm_presentation
Test RelayTool creation for LLM presentation.
tests/test_tool.py:448
Functiontest_relay_tool_format_for_llm_basic_tool
Test format_for_llm method with basic tool for LLM consumption.
tests/test_tool.py:458
Functiontest_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
Functiontest_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
Functiontest_relay_tool_format_for_llm_string_schema_tool
Test format_for_llm with string-type schema.
tests/test_tool.py:505
Functiontest_relay_tool_format_for_llm_with_complex_descriptions
Test format_for_llm with complex parameter descriptions.
tests/test_tool.py:557
Functiontest_relay_tool_format_for_llm_with_parameters
Test format_for_llm method showing required vs optional parameters.
tests/test_tool.py:473
Functiontest_relay_tool_inherits_base_tool_functionality
Test that RelayTool inherits BaseTool functionality.
tests/test_tool.py:543
Functiontest_relay_tool_with_different_states
Test RelayTool with different states for compliance management.
tests/test_tool.py:595
Functiontest_repr_operator
Test __repr__ operator for registry.
tests/test_tool_registry.py:569
Functiontest_server_config
Create generic test server configuration.
tests/test_downstream_mcp_client.py:53
Functiontest_server_error_recovery_scenario
Test server error recovery and retry scenarios.
tests/test_downstream_mcp_client.py:751
Functiontest_should_block
Test should block function from security scanner
tests/test_security_scanner.py:310
Methodtest_shutdown
Test the shutdown method.
tests/test_pan_security_relay.py:106
Functiontest_slow_response_tool_performance_scenario
Test slow response tool with various delay configurations.
tests/test_downstream_mcp_client.py:904
Methodtest_sse_mcp_server__with_valid_data__parses_correctly
Tests that SseMcpServer parses valid data.
tests/test_configuration.py:208
Methodtest_stdio_mcp_server__with_valid_data__parses_correctly
Tests that StdioMcpServer parses valid data.
tests/test_configuration.py:188
Functiontest_str_with_message_only
Test string representation with message only.
tests/test_exceptions.py:39
Functiontest_to_mcp_format_with_message_and_error_type
Test to_mcp_format method with message and error type.
tests/test_exceptions.py:47
Functiontest_to_mcp_tool_conversion_for_relay
Test conversion to standard MCP Tool for relay operations.
tests/test_tool.py:183
Functiontest_tool_registry_edge_cases
Test edge cases for tool registry operations.
tests/test_tool_registry.py:718
Functiontest_tool_registry_initialization_custom_expiry
Test ToolRegistry initialization with custom cache expiry.
tests/test_tool_registry.py:140
Functiontest_tool_registry_initialization_default_expiry
Test ToolRegistry initialization with default cache expiry.
tests/test_tool_registry.py:129
Functiontest_tool_registry_initialization_invalid_expiry
Test ToolRegistry initialization with invalid cache expiry.
tests/test_tool_registry.py:148
Functiontest_tool_registry_initialization_logging
Test that initialization logs cache expiry information.
tests/test_tool_registry.py:163
Functiontest_update_available_tools_filtering
Test that _update_available_tools filters enabled tools correctly.
tests/test_tool_registry.py:241
Functiontest_update_hash_mapping
Test that _update_hash_mapping creates correct hash mappings.
tests/test_tool_registry.py:263
Functiontest_update_hash_mapping_with_empty_hash
Test hash mapping with tool that has empty hash.
tests/test_tool_registry.py:278
Functiontest_update_registry_exception_handling
Test registry update exception handling.
tests/test_tool_registry.py:209
← previousnext →201–300 of 304, ranked by callers