community.docker/tests/unit/plugins/module_utils
Paul Berruti 31cebc66bf fix: Handle tag@digest format in push_image method
Extends the tag@digest fix to also cover push operations in docker_image.py.
The push_image() method was passing combined tag@digest format directly to
the Docker API's /images/{name}/push endpoint, which fails with
"invalid tag format" errors.

This fix:
1. Imports build_pull_arguments() into docker_image.py
2. Uses the helper in push_image() before calling the API
3. When tag contains @ (but isn't a pure digest), passes the full
   reference as the image name and omits the tag parameter

This complements the previous fix to pull_image() methods, ensuring
both pull and push operations handle tag@digest correctly.
2025-11-23 19:48:02 -08:00
..
_api Fix parse_repository_tag to handle images with both tag and digest 2025-11-22 16:58:54 -08:00
compose_v2_test_cases.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
test__compose_v2.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
test__copy.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
test__image_archive.py Python code modernization, 8/n (#1179) 2025-10-25 00:36:04 +00:00
test__logfmt.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
test__scramble.py Add typing information, 2/n (#1178) 2025-10-25 01:16:04 +02:00
test__util.py Fix _image_lookup to handle combined tag@digest format 2025-11-22 20:10:21 -08:00
test_pull_image.py fix: Handle tag@digest format in push_image method 2025-11-23 19:48:02 -08:00