Merge pull request #2172 from guardicore/2153-refactor-agent-config-resource

Island: Export AgentConfiguration resource from __init__
This commit is contained in:
ilija-lazoroski 2022-08-05 10:49:32 +02:00 committed by GitHub
commit d30c2df0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 import Authenticate, Register, RegistrationStatus, 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)