From 16c95e05ecabce344e30220ecf4c2146e9658807 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 13 Jul 2022 12:42:02 -0400 Subject: [PATCH] UT: Remove unused conftest.py --- .../monkey_island/cc/services/conftest.py | 128 ------------------ 1 file changed, 128 deletions(-) delete mode 100644 monkey/tests/unit_tests/monkey_island/cc/services/conftest.py diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py b/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py deleted file mode 100644 index 10e5d9377..000000000 --- a/monkey/tests/unit_tests/monkey_island/cc/services/conftest.py +++ /dev/null @@ -1,128 +0,0 @@ -import pytest - -from monkey_island.cc.services.config import ConfigService - - -@pytest.fixture -def IPS(): - return ["0.0.0.0", "9.9.9.9"] - - -@pytest.fixture -def PORT(): - return 9999 - - -@pytest.fixture -def config(monkeypatch): - # Note: ConfigService is going away, don't try to fix the UT using - # this fixture - config = ConfigService.get_config(True) - return config - - -@pytest.fixture -def fake_schema(): - return { - "definitions": { - "definition_type_1": { - "title": "Definition Type 1", - "anyOf": [ - { - "title": "Config Option 1", - "attack_techniques": ["T0000", "T0001"], - }, - { - "title": "Config Option 2", - "attack_techniques": ["T0000"], - }, - { - "title": "Config Option 3", - "attack_techniques": [], - }, - { - "title": "Config Option 4", - }, - ], - }, - "definition_type_2": { - "title": "Definition Type 2", - "anyOf": [ - { - "title": "Config Option 5", - "attack_techniques": ["T0000", "T0001"], - }, - { - "title": "Config Option 6", - "attack_techniques": ["T0000"], - }, - { - "title": "Config Option 7", - "attack_techniques": [], - }, - { - "title": "Config Option 8", - }, - ], - }, - }, - "properties": { - "property_type_1": { - "title": "Property Type 1", - "properties": { - "category_1": { - "title": "Category 1", - "properties": { - "config_option_1": { - "title": "Config Option 1", - "related_attack_techniques": ["T0000"], - }, - }, - }, - }, - }, - "property_type_2": { - "title": "Property Type 2", - "properties": { - "category_1": { - "title": "Category 1", - "properties": { - "config_option_1": { - "title": "Config Option 1", - "related_attack_techniques": ["T0000"], - }, - }, - }, - "category_2": { - "title": "Category 2", - "properties": { - "config_option_1": { - "title": "Config Option 1", - "properties": { - "config_option_1.1": { - "title": "Config Option 1.1", - "related_attack_techniques": ["T0000"], - }, - }, - }, - "config_option_2": { - "title": "Config Option 2", - "properties": { - "config_option_2.1": { - "title": "Config Option 2.1", - "properties": { - "config_option_2.1.1": { - "title": "Config Option 2.1.1", - "related_attack_techniques": ["T0000"], - } - }, - "related_attack_techniques": ["T0000"], - }, - }, - }, - }, - }, - }, - }, - }, - }