forked from p15670423/monkey
Remove unused code in unit tests
This commit is contained in:
parent
33e74b1f3e
commit
638e70e978
|
@ -63,10 +63,6 @@ class StubEnvironmentConfig(EnvironmentConfig):
|
||||||
os.remove(self.server_config_path)
|
os.remove(self.server_config_path)
|
||||||
|
|
||||||
|
|
||||||
def get_server_config_file_path_test_version():
|
|
||||||
return os.path.join(os.getcwd(), "test_config.json")
|
|
||||||
|
|
||||||
|
|
||||||
class TestEnvironment(TestCase):
|
class TestEnvironment(TestCase):
|
||||||
class EnvironmentCredentialsNotRequired(Environment):
|
class EnvironmentCredentialsNotRequired(Environment):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -21,7 +21,6 @@ NT_HASH = "a9fdfa038c4b75ebc76dc855dd74f0da"
|
||||||
VICTIM_IP = "0.0.0.0"
|
VICTIM_IP = "0.0.0.0"
|
||||||
VICTIM_DOMAIN_NAME = "domain-name"
|
VICTIM_DOMAIN_NAME = "domain-name"
|
||||||
HOSTNAME = "name-of-host"
|
HOSTNAME = "name-of-host"
|
||||||
EXPLOITER_CLASS_NAME = "exploiter-name"
|
|
||||||
|
|
||||||
# Below telem constants only contain fields relevant to current tests
|
# Below telem constants only contain fields relevant to current tests
|
||||||
|
|
||||||
|
|
|
@ -2,17 +2,6 @@ from unittest import TestCase
|
||||||
|
|
||||||
from monkey_island.cc.services.bootloader import BootloaderService
|
from monkey_island.cc.services.bootloader import BootloaderService
|
||||||
|
|
||||||
WINDOWS_VERSIONS = {
|
|
||||||
"5.0": "Windows 2000",
|
|
||||||
"5.1": "Windows XP",
|
|
||||||
"5.2": "Windows XP/server 2003",
|
|
||||||
"6.0": "Windows Vista/server 2008",
|
|
||||||
"6.1": "Windows 7/server 2008R2",
|
|
||||||
"6.2": "Windows 8/server 2012",
|
|
||||||
"6.3": "Windows 8.1/server 2012R2",
|
|
||||||
"10.0": "Windows 10/server 2016-2019",
|
|
||||||
}
|
|
||||||
|
|
||||||
MIN_GLIBC_VERSION = 2.14
|
MIN_GLIBC_VERSION = 2.14
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue