5 Commits
2 changed files with 1691 additions and 4 deletions
File diff suppressed because it is too large Load Diff
@@ -417,11 +417,20 @@ class DevicePlaneRegistryTest(unittest.TestCase):
"Health": {"Status": "unhealthy"}, "Health": {"Status": "unhealthy"},
}, },
} }
preserved_inventory = {
**inventory,
"services": inventory["services"][1:],
}
with ( with (
mock.patch.object( mock.patch.object(
RUNNER, RUNNER,
"healthcheck_compose_service_with_grace", "healthcheck_compose_service_with_grace",
) as preserved_health, ) as preserved_health,
mock.patch.object(
RUNNER,
"device_plane_runtime_inventory",
return_value=preserved_inventory,
),
mock.patch.object( mock.patch.object(
RUNNER, RUNNER,
"compose_service_container_id", "compose_service_container_id",