Improved error handling for docker image pulls (#6095)

* Improved error handling for docker image pulls

* Fix mocking in tests due to api use change
This commit is contained in:
Mike Degatano
2025-08-13 12:05:27 -04:00
committed by GitHub
parent 07dd0b7394
commit 8a82b98e5b
10 changed files with 320 additions and 38 deletions

View File

@@ -372,9 +372,8 @@ async def test_load_with_incorrect_image(
"image": f"{old_image}:2024.4.0",
"force": True,
}
coresys.docker.images.pull.assert_called_once_with(
f"{correct_image}:2024.4.0",
platform="linux/amd64",
coresys.docker.pull_image.assert_called_once_with(
correct_image, "2024.4.0", platform="linux/amd64"
)
assert plugin.image == correct_image