#2799 - Update observation tests

This commit is contained in:
Marek Wolan
2024-08-07 13:43:11 +01:00
parent fe599f7745
commit b193b46b7b
3 changed files with 4 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ def test_file_observation():
dog_file_obs = FileObservation(
where=["network", "nodes", pc.hostname, "file_system", "folders", "root", "files", "dog.png"],
include_num_access=False,
file_system_requires_scan=True,
)
assert dog_file_obs.observe(state) == {"health_status": 1}
assert dog_file_obs.space == spaces.Dict({"health_status": spaces.Discrete(6)})