Skip to content

Commit

Permalink
Fix tests for Moby 25.0.0. (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Jan 20, 2024
1 parent 58036e5 commit 3cdbeda
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@
source: load
api_version: "1.22"
register: load_image_4
# Moby 25.0.0 (API version 1.44) dropped support for older API versions
when: docker_api_version is version('1.44', '<')

- name: load image (ID, idempotency)
docker_image:
Expand All @@ -316,9 +318,13 @@
"The archive did not contain image 'foo:bar'. Instead, found '" ~ docker_test_image_hello_world ~ "'." == load_image_2.msg
- load_image_3 is failed
- '"Detected no loaded images. Archive potentially corrupt?" == load_image_3.msg'
- load_image_5 is not changed

- when: docker_api_version is version('1.44', '<')
assert:
that:
- load_image_4 is changed
- "'The API version of your Docker daemon is < 1.23, which does not return the image loading result from the Docker daemon. Therefore, we cannot verify whether the expected image was loaded, whether multiple images where loaded, or whether the load actually succeeded. You should consider upgrading your Docker daemon.' in load_image_4.warnings"
- load_image_5 is not changed

####################################################################
## build.path ######################################################
Expand Down

0 comments on commit 3cdbeda

Please sign in to comment.