From ee1fa01dda9f09fbcfd615f4810b7fa76a32662e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 17 Dec 2021 08:27:25 -0500 Subject: [PATCH] UT: Move ransomware unit tests to payload/ransomware/ --- .../infection_monkey/{ => payload}/ransomware/conftest.py | 0 .../{ => payload}/ransomware/ransomware_target_files.py | 0 .../{ => payload}/ransomware/test_file_selectors.py | 2 +- .../{ => payload}/ransomware/test_in_place_file_encryptor.py | 2 +- .../{ => payload}/ransomware/test_ransomware_config.py | 0 .../{ => payload}/ransomware/test_ransomware_payload.py | 2 +- .../{ => payload}/ransomware/test_readme_dropper.py | 0 7 files changed, 3 insertions(+), 3 deletions(-) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/conftest.py (100%) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/ransomware_target_files.py (100%) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/test_file_selectors.py (96%) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/test_in_place_file_encryptor.py (96%) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/test_ransomware_config.py (100%) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/test_ransomware_payload.py (98%) rename monkey/tests/unit_tests/infection_monkey/{ => payload}/ransomware/test_readme_dropper.py (100%) diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/conftest.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/conftest.py similarity index 100% rename from monkey/tests/unit_tests/infection_monkey/ransomware/conftest.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/conftest.py diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/ransomware_target_files.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/ransomware_target_files.py similarity index 100% rename from monkey/tests/unit_tests/infection_monkey/ransomware/ransomware_target_files.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/ransomware_target_files.py diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_file_selectors.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_file_selectors.py similarity index 96% rename from monkey/tests/unit_tests/infection_monkey/ransomware/test_file_selectors.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_file_selectors.py index 23c723f0e..635b39587 100644 --- a/monkey/tests/unit_tests/infection_monkey/ransomware/test_file_selectors.py +++ b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_file_selectors.py @@ -2,7 +2,7 @@ import os import shutil import pytest -from tests.unit_tests.infection_monkey.ransomware.ransomware_target_files import ( +from tests.unit_tests.infection_monkey.payload.ransomware.ransomware_target_files import ( ALL_ZEROS_PDF, HELLO_TXT, SHORTCUT_LNK, diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_in_place_file_encryptor.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_in_place_file_encryptor.py similarity index 96% rename from monkey/tests/unit_tests/infection_monkey/ransomware/test_in_place_file_encryptor.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_in_place_file_encryptor.py index 318536de9..b69266db9 100644 --- a/monkey/tests/unit_tests/infection_monkey/ransomware/test_in_place_file_encryptor.py +++ b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_in_place_file_encryptor.py @@ -1,7 +1,7 @@ import os import pytest -from tests.unit_tests.infection_monkey.ransomware.ransomware_target_files import ( +from tests.unit_tests.infection_monkey.payload.ransomware.ransomware_target_files import ( ALL_ZEROS_PDF, ALL_ZEROS_PDF_CLEARTEXT_SHA256, ALL_ZEROS_PDF_ENCRYPTED_SHA256, diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_config.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_ransomware_config.py similarity index 100% rename from monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_config.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_ransomware_config.py diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_ransomware_payload.py similarity index 98% rename from monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_ransomware_payload.py index a2b5babdb..39ca057ee 100644 --- a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py +++ b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_ransomware_payload.py @@ -2,7 +2,7 @@ from pathlib import PurePosixPath from unittest.mock import MagicMock import pytest -from tests.unit_tests.infection_monkey.ransomware.ransomware_target_files import ( +from tests.unit_tests.infection_monkey.payload.ransomware.ransomware_target_files import ( ALL_ZEROS_PDF, TEST_KEYBOARD_TXT, ) diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_readme_dropper.py b/monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_readme_dropper.py similarity index 100% rename from monkey/tests/unit_tests/infection_monkey/ransomware/test_readme_dropper.py rename to monkey/tests/unit_tests/infection_monkey/payload/ransomware/test_readme_dropper.py