-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,028 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-1' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level1-050", network_id=1, level=1, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-10' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level10-050", network_id=10, level=10, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-11' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level11-050", network_id=11, level=11, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-12' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level12-050", network_id=12, level=12, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-13' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level13-050", network_id=13, level=13, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-2' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level2-050", network_id=2, level=2, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-3' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level3-050", network_id=3, level=3, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-4' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level4-050", network_id=4, level=4, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-5' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level5-050", network_id=5, level=5, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-6' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level6-050", network_id=6, level=6, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
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,34 @@ | ||
from config import default_config | ||
|
||
|
||
class TestEmulationConfigSuite: | ||
""" | ||
Test suite for the emulation configuration for 'level-7' | ||
""" | ||
|
||
def test_create_config(self) -> None: | ||
""" | ||
Tests creation of the emulation configuration | ||
:return: None | ||
""" | ||
config = default_config(name="csle-level7-050", network_id=7, level=7, version="0.5.0", | ||
time_step_len_seconds=15) | ||
assert config.vuln_config is not None | ||
assert config.containers_config is not None | ||
assert config.flags_config is not None | ||
assert config.resources_config is not None | ||
assert config.topology_config is not None | ||
assert config.traffic_config is not None | ||
assert config.users_config is not None | ||
assert config.vuln_config is not None | ||
assert config.kafka_config is not None | ||
assert config.services_config is not None | ||
assert config.static_attacker_sequences is not None | ||
assert config.ovs_config is not None | ||
assert config.host_manager_config is not None | ||
assert config.snort_ids_manager_config is not None | ||
assert config.ossec_ids_manager_config is not None | ||
assert config.docker_stats_manager_config is not None | ||
assert config.elk_config is not None | ||
assert config.beats_config is not None |
Oops, something went wrong.