#2769 - update observation tests with new parameter

This commit is contained in:
Marek Wolan
2024-08-16 09:21:27 +01:00
parent 1d2705eb1b
commit 21c0b02ff7
3 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ def test_firewall_observation():
wildcard_list=["0.0.0.255", "0.0.0.1"], wildcard_list=["0.0.0.255", "0.0.0.1"],
port_list=["HTTP", "DNS"], port_list=["HTTP", "DNS"],
protocol_list=["TCP"], protocol_list=["TCP"],
include_users=False,
) )
observation = firewall_observation.observe(firewall.describe_state()) observation = firewall_observation.observe(firewall.describe_state())

View File

@@ -39,6 +39,7 @@ def test_host_observation(simulation):
folders=[], folders=[],
network_interfaces=[], network_interfaces=[],
file_system_requires_scan=True, file_system_requires_scan=True,
include_users=False,
) )
assert host_obs.space["operating_status"] == spaces.Discrete(5) assert host_obs.space["operating_status"] == spaces.Discrete(5)

View File

@@ -27,7 +27,7 @@ def test_router_observation():
port_list=["HTTP", "DNS"], port_list=["HTTP", "DNS"],
protocol_list=["TCP"], protocol_list=["TCP"],
) )
router_observation = RouterObservation(where=[], ports=ports, num_ports=8, acl=acl) router_observation = RouterObservation(where=[], ports=ports, num_ports=8, acl=acl, include_users=False)
# Observe the state using the RouterObservation instance # Observe the state using the RouterObservation instance
observed_output = router_observation.observe(router.describe_state()) observed_output = router_observation.observe(router.describe_state())