MCPcopy Create free account

hub / github.com/awslabs/threat-modeling-mcp-server / functions

Functions448 in github.com/awslabs/threat-modeling-mcp-server

Methodtest_create_minimal_threat
Test creating a threat with minimal required fields.
tests/test_models.py:43
Methodtest_create_mitigation_link
Test creating a mitigation link.
tests/test_models.py:240
Methodtest_create_mitigation_with_all_fields
Test creating a mitigation with all fields populated.
tests/test_models.py:169
Methodtest_create_threat_model_with_data
Test creating a threat model with data.
tests/test_models.py:261
Methodtest_create_threat_with_all_fields
Test creating a threat with all fields populated.
tests/test_models.py:60
Methodtest_data_store_type_case_insensitive
Test that data store type accepts case-insensitive values.
tests/test_models.py:396
Methodtest_delete_existing_threat
Test deleting an existing threat.
tests/test_threat_generator.py:311
Methodtest_delete_mitigation_removes_links
Test that deleting a mitigation removes associated links.
tests/test_threat_generator.py:636
Methodtest_delete_nonexistent_threat
Test deleting a non-existent threat.
tests/test_threat_generator.py:327
Methodtest_delete_threat_removes_links
Test that deleting a threat removes associated links.
tests/test_threat_generator.py:604
Methodtest_detect_completion_does_not_raise
Test that detect_phase_completion doesn't raise errors.
tests/test_step_orchestrator.py:178
Methodtest_discovered_classes_are_enum_subclasses
Test that all discovered classes are Enum subclasses.
tests/test_enum_validator.py:109
Methodtest_discovers_component_type_enum
Test that ComponentType enum is discovered.
tests/test_enum_validator.py:99
Methodtest_discovers_service_provider_enum
Test that ServiceProvider enum is discovered.
tests/test_enum_validator.py:104
Methodtest_discovers_threat_category_enum
Test that ThreatCategory enum is discovered.
tests/test_enum_validator.py:89
Methodtest_discovers_threat_severity_enum
Test that ThreatSeverity enum is discovered.
tests/test_enum_validator.py:94
Methodtest_error_includes_enum_class_name
Test that error message includes the enum class name.
tests/test_enum_validator.py:80
Methodtest_error_includes_invalid_value
Test that error message includes the invalid value.
tests/test_enum_validator.py:75
Methodtest_error_message_includes_field_name
Test that error message includes the field name.
tests/test_enum_validator.py:58
Methodtest_error_message_without_field_name
Test that error message works without field name.
tests/test_enum_validator.py:64
Methodtest_exact_match_returns_enum_member
Test that exact value match returns the enum member.
tests/test_enum_validator.py:24
Methodtest_get_common_mitigations_returns_dict
Test that get_common_mitigations returns a dictionary.
tests/test_models.py:463
Methodtest_get_common_threats_returns_dict
Test that get_common_threats returns a dictionary.
tests/test_models.py:433
Methodtest_get_existing_threat
Test getting an existing threat.
tests/test_threat_generator.py:285
Methodtest_get_nonexistent_threat
Test getting a non-existent threat.
tests/test_threat_generator.py:301
Methodtest_guidance_includes_markdown_headers
Test that guidance includes markdown headers.
tests/test_step_orchestrator.py:275
Methodtest_initial_overall_completion_is_low
Test that initial overall completion is low (0.0 to 0.1).
tests/test_step_orchestrator.py:137
Methodtest_invalid_value_raises_value_error
Test that invalid value raises ValueError.
tests/test_enum_validator.py:49
Methodtest_link_duplicate_returns_already_linked
Test that linking the same mitigation twice returns already linked message.
tests/test_threat_generator.py:475
Methodtest_link_mitigation_to_threat
Test linking a mitigation to a threat.
tests/test_threat_generator.py:445
Methodtest_link_nonexistent_mitigation
Test linking a non-existent mitigation.
tests/test_threat_generator.py:507
Methodtest_link_nonexistent_threat
Test linking to a non-existent threat.
tests/test_threat_generator.py:526
Methodtest_list_all_mitigations
Test listing all mitigations.
tests/test_threat_generator.py:426
Methodtest_list_all_threats
Test listing all threats.
tests/test_threat_generator.py:237
Methodtest_list_empty_mitigations
Test listing when no mitigations exist.
tests/test_threat_generator.py:420
Methodtest_list_empty_threats
Test listing when no threats exist.
tests/test_threat_generator.py:231
Methodtest_list_threats_filter_by_category
Test filtering threats by category.
tests/test_threat_generator.py:258
Methodtest_mitigation_entries_have_required_fields
Test that mitigation entries have required fields.
tests/test_models.py:479
Methodtest_mitigation_invalid_type_raises_error
Test that invalid type raises validation error.
tests/test_models.py:204
Methodtest_mitigation_status_case_insensitive
Test that mitigation status accepts case-insensitive values.
tests/test_models.py:193
Methodtest_mitigation_status_values
Test MitigationStatus enum values are returned correctly.
tests/test_enum_validator.py:136
Methodtest_mitigation_type_values
Test that MitigationType has expected values.
tests/test_models.py:508
Methodtest_none_value_returns_none
Test that None value returns None without error.
tests/test_enum_validator.py:44
Methodtest_phase_1_complete_when_context_set
Test that phase 1 is marked complete when business context is set.
tests/test_step_orchestrator.py:187
Methodtest_phase_1_guidance_contains_next_steps
Test that phase 1 guidance contains next steps.
tests/test_step_orchestrator.py:67
Methodtest_phase_1_guidance_contains_objectives
Test that phase 1 guidance contains objectives.
tests/test_step_orchestrator.py:55
Methodtest_phase_1_guidance_contains_tools
Test that phase 1 guidance contains tools to use.
tests/test_step_orchestrator.py:61
Methodtest_phase_1_is_business_context
Test that phase 1 is Business Context Analysis.
tests/test_step_orchestrator.py:35
Methodtest_phase_2_complete_when_components_exist
Test that phase 2 is marked complete when components exist.
tests/test_step_orchestrator.py:206
Methodtest_phase_2_guidance_contains_architecture_info
Test that phase 2 guidance contains architecture information.
tests/test_step_orchestrator.py:73
Methodtest_phase_6_complete_when_threats_exist
Test that phase 6 is marked complete when threats exist.
tests/test_step_orchestrator.py:222
Methodtest_phase_6_guidance_contains_stride
Test that phase 6 guidance mentions STRIDE.
tests/test_step_orchestrator.py:79
Methodtest_phase_6_is_threat_identification
Test that phase 6 is Threat Identification.
tests/test_step_orchestrator.py:39
Methodtest_phase_7_5_guidance_contains_code_validation
Test that phase 7.5 guidance contains code validation info.
tests/test_step_orchestrator.py:91
Methodtest_phase_7_5_is_code_validation
Test that phase 7.5 is Code Validation Analysis.
tests/test_step_orchestrator.py:43
Methodtest_phase_7_complete_when_mitigations_linked
Test that phase 7 is marked complete when mitigations are linked.
tests/test_step_orchestrator.py:238
Methodtest_phase_7_guidance_contains_mitigation_info
Test that phase 7 guidance contains mitigation information.
tests/test_step_orchestrator.py:85
Methodtest_phase_9_guidance_contains_export_info
Test that phase 9 guidance contains export information.
tests/test_step_orchestrator.py:97
Methodtest_phase_9_is_output_generation
Test that phase 9 is Output Generation.
tests/test_step_orchestrator.py:47
Methodtest_phases_contains_all_phases
Test that PHASES dictionary contains all expected phases.
tests/test_step_orchestrator.py:29
Methodtest_phases_in_status_have_name_and_completion
Test that each phase in status has name and completion.
tests/test_step_orchestrator.py:130
Methodtest_returns_empty_for_unknown_enum
Test that empty list is returned for unknown enum class.
tests/test_enum_validator.py:125
Methodtest_returns_first_phase_when_all_incomplete
Test that function returns phase 1 when all phases are incomplete.
tests/test_step_orchestrator.py:147
Methodtest_returns_last_phase_when_all_complete
Test that function returns last phase when all are complete.
tests/test_step_orchestrator.py:166
Methodtest_returns_next_incomplete_phase
Test that function returns next incomplete phase.
tests/test_step_orchestrator.py:152
Methodtest_returns_phase_after_multiple_complete
Test that function returns correct phase after multiple complete.
tests/test_step_orchestrator.py:158
Methodtest_returns_values_for_known_enum
Test that values are returned for a known enum class.
tests/test_enum_validator.py:119
Methodtest_single_item_mode
Single item mode still works (backwards compat).
tests/test_batch_operations.py:67
Methodtest_single_item_mode
Single item update still works.
tests/test_batch_operations.py:118
Methodtest_single_item_mode
Single item delete still works.
tests/test_batch_operations.py:147
Methodtest_status_contains_completion_info
Test that status contains completion information.
tests/test_step_orchestrator.py:118
Methodtest_status_contains_current_phase
Test that status contains current phase information.
tests/test_step_orchestrator.py:112
Methodtest_status_contains_phases_dict
Test that status contains phases dictionary.
tests/test_step_orchestrator.py:124
Methodtest_threat_category_stride_values
Test that ThreatCategory includes all STRIDE categories.
tests/test_models.py:492
Methodtest_threat_category_validation
Test threat category enum validation.
tests/test_models.py:104
Methodtest_threat_entries_have_required_fields
Test that threat entries have required fields.
tests/test_models.py:450
Methodtest_threat_invalid_category_raises_error
Test that invalid category raises validation error.
tests/test_models.py:119
Methodtest_threat_optional_fields_default_to_none
Test that optional fields default to None or empty lists.
tests/test_models.py:134
Methodtest_threat_severity_levels
Test that ThreatSeverity has expected levels.
tests/test_models.py:501
Methodtest_threat_status_validation_case_insensitive
Test that threat status accepts case-insensitive values.
tests/test_models.py:89
Methodtest_threat_status_values
Test ThreatStatus enum values are returned correctly.
tests/test_enum_validator.py:130
Methodtest_unknown_phase_returns_no_guidance_message
Test that unknown phase returns appropriate message.
tests/test_step_orchestrator.py:103
Methodtest_unlink_mitigation_from_threat
Test unlinking a mitigation from a threat.
tests/test_threat_generator.py:542
Methodtest_unlink_nonexistent_link
Test unlinking when no link exists.
tests/test_threat_generator.py:575
Methodtest_update_mitigation_content
Test updating mitigation content.
tests/test_threat_generator.py:383
Methodtest_update_mitigation_status
Test updating mitigation status.
tests/test_threat_generator.py:400
Methodtest_update_nonexistent_threat
Test updating a non-existent threat.
tests/test_threat_generator.py:198
Methodtest_update_threat_source
Test updating threat source.
tests/test_threat_generator.py:159
Methodtest_update_threat_status
Test updating threat status.
tests/test_threat_generator.py:179
Methodtest_update_threat_updates_statement
Test that updating threat components updates the statement.
tests/test_threat_generator.py:208
Methodtest_whitespace_trimming
Test that whitespace is trimmed from input.
tests/test_enum_validator.py:39
Functionunlink_mitigation_from_threat
Unlink a mitigation from a threat. This tool unlinks a mitigation from a threat in the threat model. Args: ctx: MCP cont
threat_modeling_mcp_server/tools/threat_generator.py:982
Functionupdate_asset
Update an existing asset. Supports batch operations via the 'items' parameter. This tool updates one or more existing assets in the system.
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:942
Functionupdate_asset_impl
Update an existing asset. Args: ctx: MCP context for logging and error handling id: ID of the asset to update name: N
threat_modeling_mcp_server/tools/asset_flow_analyzer.py:78
Functionupdate_assumption
Update an existing assumption. Supports batch operations via the 'items' parameter. For single item: provide id and fields to update directly
threat_modeling_mcp_server/tools/assumption_manager.py:260
Functionupdate_assumption_impl
Update an existing assumption. Args: ctx: MCP context for logging and error handling id: ID of the assumption to update d
threat_modeling_mcp_server/tools/assumption_manager.py:120
Functionupdate_component
Update an existing component in the architecture. Supports batch operations via the 'items' parameter. This tool updates one or more existing
threat_modeling_mcp_server/tools/architecture_analyzer.py:843
Functionupdate_component_impl
Update an existing component in the architecture. Args: ctx: MCP context for logging and error handling id: ID of the compone
threat_modeling_mcp_server/tools/architecture_analyzer.py:75
Functionupdate_connection
Update an existing connection in the architecture. Supports batch operations via the 'items' parameter. This tool updates one or more existin
threat_modeling_mcp_server/tools/architecture_analyzer.py:963
Functionupdate_connection_impl
Update an existing connection in the architecture. Args: ctx: MCP context for logging and error handling id: ID of the connec
threat_modeling_mcp_server/tools/architecture_analyzer.py:274
← previousnext →301–400 of 448, ranked by callers