-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'unit-tests' into develop
- Loading branch information
Showing
90 changed files
with
196 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
monkey/common/cloud/aws/test_aws_service.py → ...ests/common/cloud/aws/test_aws_service.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import os | ||
import sys | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
MONKEY_BASE_PATH = str(Path(__file__).parent.parent) | ||
sys.path.insert(0, MONKEY_BASE_PATH) | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def resources_dir(pytestconfig): | ||
return os.path.join(pytestconfig.rootdir, "monkey", "tests", "resources") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def environment_resources_dir(resources_dir): | ||
return os.path.join(resources_dir, "environment") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def with_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_with_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def no_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_no_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def partial_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_partial_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def standard_with_credentials(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_standard_with_credentials.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def with_data_dir(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_with_data_dir.json") | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def with_data_dir_home(environment_resources_dir): | ||
return os.path.join(environment_resources_dir, "server_config_with_data_dir_home.json") |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tion_monkey/exploit/tools/test_payload.py → ...tion_monkey/exploit/tools/test_payload.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.