diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/attack/technique_reports/test_technique_reports.py b/monkey/tests/unit_tests/monkey_island/cc/services/attack/technique_reports/test_technique_reports.py index 05f051ac2..1da9860b9 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/attack/technique_reports/test_technique_reports.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/attack/technique_reports/test_technique_reports.py @@ -8,18 +8,6 @@ from monkey_island.cc.services.attack.technique_reports.__init__ import ( disabled_msg, ) -FAKE_CONFIG_SCHEMA_PER_ATTACK_TECHNIQUE = { - "T0000": { - "Definition Type 1": ["Config Option 1", "Config Option 2"], - "Definition Type 2": ["Config Option 5", "Config Option 6"], - "Property Type 1": ["Config Option 1 (Tab 1)"], - }, - "T0001": { - "Definition Type 1": ["Config Option 1"], - "Definition Type 2": ["Config Option 5"], - }, -} - @pytest.fixture(scope="function", autouse=True) def mock_config_schema_per_attack_technique(monkeypatch, fake_schema): @@ -30,7 +18,7 @@ def mock_config_schema_per_attack_technique(monkeypatch, fake_schema): class FakeAttackTechnique_TwoRelevantSystems(AttackTechnique): - tech_id = "T0001" + tech_id = "T0000" relevant_systems = ["System 1", "System 2"] unscanned_msg = "UNSCANNED" scanned_msg = "SCANNED" @@ -44,8 +32,14 @@ class ExpectedMsgs_TwoRelevantSystems(Enum): UNSCANNED: str = ( "UNSCANNED due to one of the following reasons:\n" "- The following configuration options were disabled or empty:
" - "- Definition Type 1 — Config Option 1
" - "- Definition Type 2 — Config Option 5
" + "- Definition Type 1 — Config Option 1, Config Option 2
" + "- Definition Type 2 — Config Option 5, Config Option 6
" + "- Property Type 1 -> Category 1 — Config Option 1
" + "- Property Type 2 -> Category 1 — Config Option 1
" + "- Property Type 2 -> Category 2 -> Config Option 1 — Config Option 1.1
" + "- Property Type 2 -> Category 2 -> Config Option 2 — Config Option 2.1
" + "- Property Type 2 -> Category 2 -> Config Option 2 -> Config Option 2.1 — Config Option " + "2.1.1
" ) SCANNED: str = "SCANNED" USED: str = "USED"