Island: Export AgentConfiguration resource from __init__

This commit is contained in:
Ilija Lazoroski 2022-08-05 08:54:09 +02:00
parent 89b194d0ae
commit aaebd74181
3 changed files with 3 additions and 4 deletions

View File

@ -12,6 +12,7 @@ from common import DIContainer
from monkey_island.cc.database import database, mongo
from monkey_island.cc.resources import (
AgentBinaries,
AgentConfiguration,
ClearSimulationData,
IPAddresses,
IslandLog,
@ -20,7 +21,6 @@ from monkey_island.cc.resources import (
ResetAgentConfiguration,
)
from monkey_island.cc.resources.AbstractResource import AbstractResource
from monkey_island.cc.resources.agent_configuration import AgentConfiguration
from monkey_island.cc.resources.agent_controls import StopAgentCheck, StopAllAgents
from monkey_island.cc.resources.attack.attack_report import AttackReport
from monkey_island.cc.resources.auth.authenticate import Authenticate, init_jwt

View File

@ -5,3 +5,4 @@ from .island_log import IslandLog
from .reset_agent_configuration import ResetAgentConfiguration
from .propagation_credentials import PropagationCredentials
from .ip_addresses import IPAddresses
from .agent_configuration import AgentConfiguration

View File

@ -8,9 +8,7 @@ from tests.unit_tests.monkey_island.conftest import get_url_for_resource
from common.agent_configuration import AgentConfiguration
from monkey_island.cc.repository import IAgentConfigurationRepository
from monkey_island.cc.resources.agent_configuration import (
AgentConfiguration as AgentConfigurationResource,
)
from monkey_island.cc.resources import AgentConfiguration as AgentConfigurationResource
AGENT_CONFIGURATION_URL = get_url_for_resource(AgentConfigurationResource)