UT: Rename PropagationCredentialsRepository to
StubPropagationCredentialsRepository
This commit is contained in:
parent
a27edfa94b
commit
794277797b
|
@ -3,4 +3,4 @@ from .mock_file_repository import MockFileRepository, FILE_CONTENTS, FILE_NAME
|
||||||
from .open_error_file_repository import OpenErrorFileRepository
|
from .open_error_file_repository import OpenErrorFileRepository
|
||||||
from .in_memory_agent_configuration_repository import InMemoryAgentConfigurationRepository
|
from .in_memory_agent_configuration_repository import InMemoryAgentConfigurationRepository
|
||||||
from .in_memory_simulation_configuration import InMemorySimulationRepository
|
from .in_memory_simulation_configuration import InMemorySimulationRepository
|
||||||
from .propagation_credentials_repository import PropagationCredentialsRepository
|
from .stub_propagation_credentials_repository import StubPropagationCredentialsRepository
|
||||||
|
|
|
@ -32,7 +32,7 @@ propagation_credentials_2 = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class PropagationCredentialsRepository(ICredentialsRepository):
|
class StubPropagationCredentialsRepository(ICredentialsRepository):
|
||||||
def get_configured_credentials(self) -> Sequence[Credentials]:
|
def get_configured_credentials(self) -> Sequence[Credentials]:
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -2,7 +2,7 @@ import json
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from tests.common import StubDIContainer
|
from tests.common import StubDIContainer
|
||||||
from tests.monkey_island import PropagationCredentialsRepository
|
from tests.monkey_island import StubPropagationCredentialsRepository
|
||||||
from tests.unit_tests.monkey_island.conftest import get_url_for_resource
|
from tests.unit_tests.monkey_island.conftest import get_url_for_resource
|
||||||
|
|
||||||
from monkey_island.cc.repository import ICredentialsRepository
|
from monkey_island.cc.repository import ICredentialsRepository
|
||||||
|
@ -13,7 +13,7 @@ from monkey_island.cc.resources.propagation_credentials import PropagationCreden
|
||||||
def flask_client(build_flask_client):
|
def flask_client(build_flask_client):
|
||||||
container = StubDIContainer()
|
container = StubDIContainer()
|
||||||
|
|
||||||
container.register(ICredentialsRepository, PropagationCredentialsRepository)
|
container.register(ICredentialsRepository, StubPropagationCredentialsRepository)
|
||||||
|
|
||||||
with build_flask_client(container) as flask_client:
|
with build_flask_client(container) as flask_client:
|
||||||
yield flask_client
|
yield flask_client
|
||||||
|
|
Loading…
Reference in New Issue