UT: Remove disused StubPropagationCredentialsRepository

This commit is contained in:
Mike Salvatore 2022-07-11 14:57:16 -04:00
parent db74ea013d
commit 037e6619dd
2 changed files with 0 additions and 37 deletions

View File

@ -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

View File

@ -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