Fix last tests
This commit is contained in:
@@ -12,6 +12,8 @@ def test_passing_actions_down(monkeypatch) -> None:
|
||||
sim = Simulation()
|
||||
|
||||
pc1 = Computer(hostname="PC-1", ip_address="10.10.1.1", subnet_mask="255.255.255.0")
|
||||
pc1.start_up_duration = 0
|
||||
pc1.power_on()
|
||||
pc2 = Computer(hostname="PC-2", ip_address="10.10.1.2", subnet_mask="255.255.255.0")
|
||||
srv = Server(hostname="WEBSERVER", ip_address="10.10.1.100", subnet_mask="255.255.255.0")
|
||||
s1 = Switch(hostname="switch1")
|
||||
|
||||
@@ -125,8 +125,8 @@ def test_describe_state_nmne(uc2_network):
|
||||
web_server_nic_state = web_server_nic.describe_state()
|
||||
db_server_nic_state = db_server_nic.describe_state()
|
||||
uc2_network.apply_timestep(timestep=0)
|
||||
assert web_server_nic_state["nmne"] == {}
|
||||
assert db_server_nic_state["nmne"] == {}
|
||||
assert web_server_nic_state["nmne"] == {"direction": {"outbound": {"keywords": {"*": 1}}}}
|
||||
assert db_server_nic_state["nmne"] == {"direction": {"inbound": {"keywords": {"*": 1}}}}
|
||||
|
||||
# Perform another "DELETE" query
|
||||
db_client.query("DELETE")
|
||||
@@ -135,8 +135,8 @@ def test_describe_state_nmne(uc2_network):
|
||||
web_server_nic_state = web_server_nic.describe_state()
|
||||
db_server_nic_state = db_server_nic.describe_state()
|
||||
uc2_network.apply_timestep(timestep=0)
|
||||
assert web_server_nic_state["nmne"] == {"direction": {"outbound": {"keywords": {"*": 1}}}}
|
||||
assert db_server_nic_state["nmne"] == {"direction": {"inbound": {"keywords": {"*": 1}}}}
|
||||
assert web_server_nic_state["nmne"] == {"direction": {"outbound": {"keywords": {"*": 2}}}}
|
||||
assert db_server_nic_state["nmne"] == {"direction": {"inbound": {"keywords": {"*": 2}}}}
|
||||
|
||||
|
||||
def test_capture_nmne_observations(uc2_network):
|
||||
|
||||
Reference in New Issue
Block a user