From 8f9289517f57233842385e691d7c19e3d2635c04 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 4 Oct 2021 17:22:52 -0400 Subject: [PATCH] Tests: Decouple uses_encryptor() fixture from AuthenticationService --- monkey/tests/unit_tests/monkey_island/cc/conftest.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/conftest.py b/monkey/tests/unit_tests/monkey_island/cc/conftest.py index 7d9642201..22390dea7 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/conftest.py +++ b/monkey/tests/unit_tests/monkey_island/cc/conftest.py @@ -11,7 +11,6 @@ from tests.unit_tests.monkey_island.cc.server_utils.encryption.test_password_bas ) from monkey_island.cc.server_utils.encryption import initialize_datastore_encryptor -from monkey_island.cc.services.authentication import AuthenticationService @pytest.fixture @@ -28,11 +27,7 @@ def monkey_config_json(monkey_config): return json.dumps(monkey_config) -MOCK_USERNAME = "m0nk3y_u53r" -MOCK_PASSWORD = "3cr3t_p455w0rd" - - @pytest.fixture def uses_encryptor(data_for_tests_dir): - secret = AuthenticationService._get_secret_from_credentials(MOCK_USERNAME, MOCK_PASSWORD) + secret = "m0nk3y_u53r:3cr3t_p455w0rd" initialize_datastore_encryptor(data_for_tests_dir, secret)