Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/mcp
/ functions
Functions
32,024 in github.com/awslabs/mcp
⨍
Functions
32,024
◇
Types & classes
5,353
↳
Endpoints
3,782
Function
test_get_connection_closes_conn_when_pool_becomes_none
When pool becomes None between checkout and return, connection is closed.
src/mssql-mcp-server/tests/test_pool_exhaustion_and_expiry.py:132
Function
test_get_connection_custom_settings
Test connection creation with custom environment settings.
src/elasticache-mcp-server/tests/test_connection.py:43
Method
test_get_connection_custom_values
Test get_connection with custom environment values.
src/memcached-mcp-server/tests/test_connection.py:53
Method
test_get_connection_data
Test creating a GetConnectionData.
src/aws-dataprocessing-mcp-server/tests/models/test_data_catalog_models.py:525
Function
test_get_connection_default_settings
Test connection creation with default settings.
src/elasticache-mcp-server/tests/test_connection.py:18
Method
test_get_connection_default_values
Test get_connection with default environment values.
src/memcached-mcp-server/tests/test_connection.py:24
Method
test_get_connection_enforces_hide_password_when_flag_disabled
Test that get_connection enforces hide_password=True when allow_sensitive_data_access=False.
src/aws-dataprocessing-mcp-server/tests/test_sensitive_data_access.py:135
Method
test_get_connection_error
Test that get_connection returns an error response when the Glue API call fails.
src/aws-dataprocessing-mcp-server/tests/core/glue_data_catalog/test_data_catalog_handler.py:1447
Function
test_get_connection_failure
(mocker, reset_persistent_connection)
src/aurora-dsql-mcp-server/tests/test_server.py:195
Method
test_get_connection_not_found
Test getting a non-existent connection.
src/documentdb-mcp-server/tests/test_connection_tools.py:75
Function
test_get_connection_pool_none_raises
If pool was never initialized, _get_connection raises ValueError.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:93
Function
test_get_connection_replacement_also_fails
If replacement connection can't be created, the original error still propagates.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:105
Function
test_get_connection_replaces_broken
When the yielded connection raises, a fresh connection is put back in the pool.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:62
Method
test_get_connection_respects_hide_password_when_flag_enabled
Test that get_connection respects user's hide_password choice when allow_sensitive_data_access=True.
src/aws-dataprocessing-mcp-server/tests/test_sensitive_data_access.py:167
Method
test_get_connection_singleton
Test get_connection returns same instance on multiple calls.
src/memcached-mcp-server/tests/test_connection.py:86
Method
test_get_connection_success
Test that get_connection returns a successful response when the Glue API call succeeds.
src/aws-dataprocessing-mcp-server/tests/core/glue_data_catalog/test_data_catalog_handler.py:234
Method
test_get_connection_with_all_parameters
Test that get_connection handles all optional parameters correctly.
src/aws-dataprocessing-mcp-server/tests/core/glue_data_catalog/test_data_catalog_handler.py:1473
Method
test_get_connection_with_tls_custom_certs
Test get_connection with TLS enabled using custom certificates.
src/memcached-mcp-server/tests/test_connection.py:155
Method
test_get_connection_with_tls_default
Test get_connection with TLS enabled using default settings.
src/memcached-mcp-server/tests/test_connection.py:127
Method
test_get_connection_with_tls_no_verify
Test get_connection with TLS enabled but verification disabled.
src/memcached-mcp-server/tests/test_connection.py:188
Method
test_get_container_path_all_tools_fail
Test when all container tools are found but none work.
src/dynamodb-mcp-server/tests/test_model_validation_utils.py:1134
Method
test_get_container_path_docker_available
Test when Docker is available and working.
src/dynamodb-mcp-server/tests/test_model_validation_utils.py:1082
Method
test_get_container_path_finch_available
Test when Docker fails but Finch is available.
src/dynamodb-mcp-server/tests/test_model_validation_utils.py:1098
Method
test_get_container_path_no_tools_found
Test when no container tools are found in PATH.
src/dynamodb-mcp-server/tests/test_model_validation_utils.py:1126
Method
test_get_container_port_no_output
Test _get_container_port when no port output.
src/dynamodb-mcp-server/tests/test_model_validation_utils.py:387
Function
test_get_context_logger_import
Test that get_context_logger is properly imported and used.
src/billing-cost-management-mcp-server/tests/utilities/test_sql_utils.py:2082
Method
test_get_context_no_connection
get_context raises ValueError for unknown session.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:209
Method
test_get_context_no_contexts
get_context raises ValueError when browser has no contexts.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:214
Method
test_get_context_returns_first_context
get_context returns the first browser context.
src/amazon-bedrock-agentcore-mcp-server/tests/browser/test_unit_connection.py:182
Method
test_get_correlation_id_generates_new
Test get_correlation_id generates new ID when none exists.
src/amazon-translate-mcp-server/tests/test_logging_config.py:288
Method
test_get_correlation_id_returns_existing
Test get_correlation_id returns existing ID from context.
src/amazon-translate-mcp-server/tests/test_logging_config.py:298
Method
test_get_cost_and_usage_calls_client
Test get_cost_and_usage calls client.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_tools.py:764
Method
test_get_cost_and_usage_comparisons_basic
Test get_cost_and_usage_comparisons with basic parameters.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:210
Method
test_get_cost_and_usage_comparisons_error_handling
Test get_cost_and_usage_comparisons error handling.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:438
Method
test_get_cost_and_usage_comparisons_with_billing_view_arn
Test get_cost_and_usage_comparisons with billing_view_arn parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:351
Method
test_get_cost_and_usage_comparisons_with_filter
Test get_cost_and_usage_comparisons with filter parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:288
Method
test_get_cost_and_usage_comparisons_with_group_by
Test get_cost_and_usage_comparisons with group_by parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:254
Method
test_get_cost_and_usage_comparisons_with_max_results
Test get_cost_and_usage_comparisons with max_results parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:319
Method
test_get_cost_and_usage_comparisons_with_pagination
Test get_cost_and_usage_comparisons handles pagination correctly.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:383
Method
test_get_cost_and_usage_daily
Test getting daily cost and usage data.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:37
Method
test_get_cost_and_usage_future_date
Test getting cost and usage data for future dates.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:200
Method
test_get_cost_and_usage_hourly
Test getting hourly cost and usage data.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:125
Method
test_get_cost_and_usage_invalid_granularity
Test getting cost and usage data with invalid granularity.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:168
Method
test_get_cost_and_usage_invalid_time_period
Test getting cost and usage data with invalid time period.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:185
Method
test_get_cost_and_usage_monthly
Test getting monthly cost and usage data.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:80
Method
test_get_cost_and_usage_with_billing_view_arn
Test get_cost_and_usage includes BillingViewArn in request.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:127
Method
test_get_cost_and_usage_with_resources_with_billing_view_arn
Test get_cost_and_usage_with_resources includes BillingViewArn.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:148
Method
test_get_cost_and_usage_without_billing_view_arn
Test get_cost_and_usage omits BillingViewArn when not provided.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:142
Function
test_get_cost_and_usage_works_in_readonly_mode
Test that get_cost_and_usage works in readonly mode.
src/elasticache-mcp-server/tests/tools/ce/test_get_cost_and_usage.py:216
Function
test_get_cost_categories
Test the get_cost_categories function.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_tools.py:548
Method
test_get_cost_categories_basic
Test basic call to get_cost_categories.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:911
Method
test_get_cost_categories_calls_client
Test get_cost_categories calls client.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_tools.py:810
Method
test_get_cost_categories_with_billing_view_arn
Test get_cost_categories includes BillingViewArn.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:256
Method
test_get_cost_category_values
Test get_cost_categories with cost_category_name to get values. AWS GetCostCategories is a single API: passing CostCategoryName makes
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:928
Method
test_get_cost_comparison_drivers_basic
Test get_cost_comparison_drivers with basic parameters.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:480
Method
test_get_cost_comparison_drivers_error_handling
Test get_cost_comparison_drivers error handling.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:704
Method
test_get_cost_comparison_drivers_with_billing_view_arn
Test get_cost_comparison_drivers with billing_view_arn parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:620
Method
test_get_cost_comparison_drivers_with_filter
Test get_cost_comparison_drivers with filter parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:557
Method
test_get_cost_comparison_drivers_with_group_by
Test get_cost_comparison_drivers with group_by parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:525
Method
test_get_cost_comparison_drivers_with_max_results
Test get_cost_comparison_drivers with max_results parameter.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:588
Method
test_get_cost_comparison_drivers_with_pagination
Test get_cost_comparison_drivers handles pagination correctly.
src/billing-cost-management-mcp-server/tests/tools/test_cost_comparison_tools.py:652
Method
test_get_cost_explorer_data_reserved_instances
Test get_cost_explorer_data with reserved instances recommendation.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:676
Method
test_get_cost_explorer_data_savings_plans
Test get_cost_explorer_data with savings plans recommendation.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:656
Method
test_get_cost_explorer_data_unsupported_type
Test get_cost_explorer_data with unsupported action type.
src/billing-cost-management-mcp-server/tests/tools/test_recommendation_details_tools.py:693
Method
test_get_cost_forecast_calls_client
Test get_cost_forecast calls client.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_tools.py:788
Method
test_get_cost_forecast_with_billing_view_arn
Test get_cost_forecast includes BillingViewArn.
src/billing-cost-management-mcp-server/tests/tools/test_cost_explorer_operations.py:207
Method
test_get_cost_report_aws_error
Test handling of AWS service errors.
src/billing-cost-management-mcp-server/tests/tools/test_billing_conductor_operations.py:1524
Method
test_get_cost_report_pagination
Test getting cost report with pagination.
src/billing-cost-management-mcp-server/tests/tools/test_billing_conductor_operations.py:1501
Method
test_get_cost_report_success
Test successful retrieval of a billing group cost report.
src/billing-cost-management-mcp-server/tests/tools/test_billing_conductor_operations.py:1439
Method
test_get_cost_report_with_billing_period_range
Test getting cost report with billing period range.
src/billing-cost-management-mcp-server/tests/tools/test_billing_conductor_operations.py:1476
Method
test_get_cost_report_with_group_by
Test getting cost report with group_by parameter.
src/billing-cost-management-mcp-server/tests/tools/test_billing_conductor_operations.py:1456
Function
test_get_credentials_alt_keys
Capitalised/alternate keys are also accepted.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:419
Function
test_get_credentials_client_error_raises
A Secrets Manager client error is wrapped as ValueError.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:482
Function
test_get_credentials_from_secret_alternate_casings
Secrets with `user`/`Username`/`Password` keys are still parsed.
src/oracle-mcp-server/tests/test_coverage.py:595
Method
test_get_credentials_from_secret_client_error
Test error handling when Secrets Manager client fails.
src/postgres-mcp-server/tests/test_psycopg_connector.py:697
Function
test_get_credentials_from_secret_client_error_wrapped
A botocore ClientError is wrapped as ValueError.
src/oracle-mcp-server/tests/test_coverage.py:656
Function
test_get_credentials_from_secret_happy_path
Standard secret with username + password keys is parsed successfully.
src/oracle-mcp-server/tests/test_coverage.py:570
Method
test_get_credentials_from_secret_manager
Should retrieve credentials from Secrets Manager.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:685
Function
test_get_credentials_from_secret_missing_password
A secret without a password field raises ValueError.
src/oracle-mcp-server/tests/test_coverage.py:628
Method
test_get_credentials_from_secret_missing_password
Test error when password is missing from secret.
src/postgres-mcp-server/tests/test_psycopg_connector.py:653
Function
test_get_credentials_from_secret_missing_username
A secret without a username field raises ValueError.
src/oracle-mcp-server/tests/test_coverage.py:612
Method
test_get_credentials_from_secret_missing_username
Test error when username is missing from secret.
src/postgres-mcp-server/tests/test_psycopg_connector.py:631
Function
test_get_credentials_from_secret_no_secret_string
When the response has no SecretString, a ValueError is raised.
src/oracle-mcp-server/tests/test_coverage.py:642
Method
test_get_credentials_from_secret_no_secret_string
Test error when secret doesn't contain SecretString.
src/postgres-mcp-server/tests/test_psycopg_connector.py:675
Method
test_get_credentials_from_secret_test_mode
Test getting credentials in test mode.
src/postgres-mcp-server/tests/test_psycopg_connector.py:483
Method
test_get_credentials_from_secret_with_Username_key
Test getting credentials with 'Username' key (capitalized).
src/postgres-mcp-server/tests/test_psycopg_connector.py:603
Method
test_get_credentials_from_secret_with_user_key
Test getting credentials with 'user' key.
src/postgres-mcp-server/tests/test_psycopg_connector.py:575
Method
test_get_credentials_from_secret_with_username_key
Test getting credentials with 'username' key.
src/postgres-mcp-server/tests/test_psycopg_connector.py:547
Method
test_get_credentials_missing_password
Should raise ValueError if password not in secret.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:736
Function
test_get_credentials_missing_password_raises
A secret without a password raises ValueError.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:452
Method
test_get_credentials_missing_raises
_get_credentials raises when no credentials are available.
src/cloudwatch-applicationsignals-mcp-server/tests/test_promql_client.py:276
Method
test_get_credentials_missing_username
Should raise ValueError if username not in secret.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:713
Function
test_get_credentials_missing_username_raises
A secret without a username raises ValueError.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:437
Method
test_get_credentials_no_secret_string
Should raise ValueError if SecretString is missing.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:759
Function
test_get_credentials_no_secret_string_raises
A response without a SecretString raises ValueError.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:467
Function
test_get_credentials_returns_username_password
Valid secret JSON yields (username, password).
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:401
Method
test_get_credentials_success
_get_credentials resolves frozen credentials from a boto3 session.
src/cloudwatch-applicationsignals-mcp-server/tests/test_promql_client.py:259
Method
test_get_credentials_test_mode
In test mode, should return test_user/test_password.
src/mysql-mcp-server/tests/test_asyncmy_connector.py:667
Function
test_get_credentials_uses_test_shortcut
When is_test=True the shortcut returns static credentials.
src/mssql-mcp-server/tests/test_pymssql_pool_extended.py:393
Method
test_get_credit_allocation_history_does_not_receive_payer_account_flag
payer_account_flag is never forwarded to allocation history.
src/billing-cost-management-mcp-server/tests/tools/test_credits_tools.py:183
← previous
next →
18,301–18,400 of 32,024, ranked by callers