UT: Fix report test

This commit is contained in:
vakarisz 2022-09-30 15:54:47 +03:00 committed by Kekoa Kaaikala
parent d0d08f7649
commit e8ed30660e
1 changed files with 4 additions and 4 deletions

View File

@ -48,15 +48,15 @@ MACHINES = [MACHINE_1, MACHINE_2, MACHINE_3, ISLAND_MACHINE]
EXPECTED_SCANNED_MACHINES = [ EXPECTED_SCANNED_MACHINES = [
{ {
"hostname": MACHINE_1.hostname, "hostname": MACHINE_1.hostname,
"ip_addresses": MACHINE_1.network_interfaces, "ip_addresses": list(map(str, MACHINE_1.network_interfaces)),
"accessible_from_nodes": [ISLAND_MACHINE], "accessible_from_nodes": [ISLAND_MACHINE.dict(simplify=True)],
"services": [], "services": [],
"domain_name": "", "domain_name": "",
}, },
{ {
"hostname": MACHINE_2.hostname, "hostname": MACHINE_2.hostname,
"ip_addresses": MACHINE_2.network_interfaces, "ip_addresses": list(map(str, MACHINE_2.network_interfaces)),
"accessible_from_nodes": [MACHINE_1], "accessible_from_nodes": [MACHINE_1.dict(simplify=True)],
"services": [], "services": [],
"domain_name": "", "domain_name": "",
}, },