#2417 Remove references to old obs names and add link obs
This commit is contained in:
@@ -4,7 +4,7 @@ from uuid import uuid4
|
||||
import pytest
|
||||
from gymnasium import spaces
|
||||
|
||||
from primaite.game.agent.observations.node_observations import NodeObservation
|
||||
from primaite.game.agent.observations.host_observations import HostObservation
|
||||
from primaite.simulator.network.hardware.nodes.host.computer import Computer
|
||||
from primaite.simulator.sim_container import Simulation
|
||||
|
||||
@@ -23,7 +23,7 @@ def test_node_observation(simulation):
|
||||
"""Test a Node observation."""
|
||||
pc: Computer = simulation.network.get_node_by_hostname("client_1")
|
||||
|
||||
node_obs = NodeObservation(where=["network", "nodes", pc.hostname])
|
||||
node_obs = HostObservation(where=["network", "nodes", pc.hostname])
|
||||
|
||||
assert node_obs.space["operating_status"] == spaces.Discrete(5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user