From 037e6619dd38fad49fe152d4c9acfe55c7661be6 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 11 Jul 2022 14:57:16 -0400 Subject: [PATCH] UT: Remove disused StubPropagationCredentialsRepository --- monkey/tests/monkey_island/__init__.py | 1 - ...stub_propagation_credentials_repository.py | 36 ------------------- 2 files changed, 37 deletions(-) delete mode 100644 monkey/tests/monkey_island/stub_propagation_credentials_repository.py diff --git a/monkey/tests/monkey_island/__init__.py b/monkey/tests/monkey_island/__init__.py index 8bf003b21..f7033842d 100644 --- a/monkey/tests/monkey_island/__init__.py +++ b/monkey/tests/monkey_island/__init__.py @@ -3,5 +3,4 @@ from .mock_file_repository import MockFileRepository, FILE_CONTENTS, FILE_NAME from .open_error_file_repository import OpenErrorFileRepository from .in_memory_agent_configuration_repository import InMemoryAgentConfigurationRepository from .in_memory_simulation_configuration import InMemorySimulationRepository -from .stub_propagation_credentials_repository import StubPropagationCredentialsRepository from .in_memory_credentials_repository import InMemoryCredentialsRepository diff --git a/monkey/tests/monkey_island/stub_propagation_credentials_repository.py b/monkey/tests/monkey_island/stub_propagation_credentials_repository.py deleted file mode 100644 index 51c8964b2..000000000 --- a/monkey/tests/monkey_island/stub_propagation_credentials_repository.py +++ /dev/null @@ -1,36 +0,0 @@ -from typing import Sequence - -from tests.data_for_tests.propagation_credentials import ( - PROPAGATION_CREDENTIALS_1, - PROPAGATION_CREDENTIALS_2, -) - -from common.credentials import Credentials -from monkey_island.cc.repository import ICredentialsRepository - - -class StubPropagationCredentialsRepository(ICredentialsRepository): - def get_configured_credentials(self) -> Sequence[Credentials]: - pass - - def get_stolen_credentials(self) -> Sequence[Credentials]: - return [PROPAGATION_CREDENTIALS_1, PROPAGATION_CREDENTIALS_2] - - def get_all_credentials(self) -> Sequence[Credentials]: - - return [PROPAGATION_CREDENTIALS_1, PROPAGATION_CREDENTIALS_2] - - def save_configured_credentials(self, credentials: Sequence[Credentials]): - pass - - def save_stolen_credentials(self, credentials: Sequence[Credentials]): - pass - - def remove_configured_credentials(self): - pass - - def remove_stolen_credentials(self): - pass - - def remove_all_credentials(self): - pass