UT: Use default config in InMemoryAgentConfigurationRepository
This commit is contained in:
parent
c86b637598
commit
f321d72dc5
|
@ -1,12 +1,10 @@
|
||||||
from tests.common.example_agent_configuration import AGENT_CONFIGURATION
|
from common.configuration import DEFAULT_AGENT_CONFIGURATION
|
||||||
|
|
||||||
from common.configuration.agent_configuration import AgentConfiguration
|
|
||||||
from monkey_island.cc.repository import IAgentConfigurationRepository
|
from monkey_island.cc.repository import IAgentConfigurationRepository
|
||||||
|
|
||||||
|
|
||||||
class InMemoryAgentConfigurationRepository(IAgentConfigurationRepository):
|
class InMemoryAgentConfigurationRepository(IAgentConfigurationRepository):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._default_configuration = AgentConfiguration.from_mapping(AGENT_CONFIGURATION)
|
self._default_configuration = DEFAULT_AGENT_CONFIGURATION
|
||||||
self._configuration = self._default_configuration
|
self._configuration = self._default_configuration
|
||||||
|
|
||||||
def get_configuration(self):
|
def get_configuration(self):
|
||||||
|
|
Loading…
Reference in New Issue