Island: Move JSONFileUserRepository to the repository package
This commit is contained in:
parent
735514d61f
commit
c1a9ad1e6f
|
@ -17,4 +17,5 @@ from .file_repository_logging_decorator import FileRepositoryLoggingDecorator
|
|||
from .agent_binary_repository import AgentBinaryRepository
|
||||
from .file_agent_configuration_repository import FileAgentConfigurationRepository
|
||||
from .file_simulation_repository import FileSimulationRepository
|
||||
from .json_file_user_repository import JSONFileUserRepository
|
||||
from .mongo_credentials_repository import MongoCredentialsRepository
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from .authentication.authentication_service import AuthenticationService
|
||||
from .authentication.json_file_user_datastore import JSONFileUserRepository
|
||||
|
||||
from .aws import AWSService
|
||||
from .island_mode_service import IslandModeService
|
||||
|
|
|
@ -25,6 +25,7 @@ from monkey_island.cc.repository import (
|
|||
IFileRepository,
|
||||
ISimulationRepository,
|
||||
IUserRepository,
|
||||
JSONFileUserRepository,
|
||||
LocalStorageFileRepository,
|
||||
MongoCredentialsRepository,
|
||||
RetrievalError,
|
||||
|
@ -41,7 +42,7 @@ from monkey_island.cc.services.telemetry.processing.processing import (
|
|||
)
|
||||
from monkey_island.cc.setup.mongo.mongo_setup import MONGO_URL
|
||||
|
||||
from . import AuthenticationService, JSONFileUserRepository
|
||||
from . import AuthenticationService
|
||||
from .reporting.report import ReportService
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -10,11 +10,11 @@ from common.utils.exceptions import (
|
|||
UnknownUserError,
|
||||
)
|
||||
from monkey_island.cc.models import UserCredentials
|
||||
from monkey_island.cc.server_utils.file_utils import is_windows_os
|
||||
from monkey_island.cc.services.authentication.json_file_user_datastore import (
|
||||
from monkey_island.cc.repository.json_file_user_repository import (
|
||||
CREDENTIALS_FILE,
|
||||
JSONFileUserRepository,
|
||||
)
|
||||
from monkey_island.cc.server_utils.file_utils import is_windows_os
|
||||
|
||||
USERNAME = "test"
|
||||
PASSWORD_HASH = "DEADBEEF"
|
Loading…
Reference in New Issue