summaryrefslogtreecommitdiff
path: root/test/python
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-12-20 17:27:02 +0100
committerValentin Rothberg <rothberg@redhat.com>2021-12-20 17:27:02 +0100
commitb1f5e861b0fa9220fbf2e95a2580892f98a803ca (patch)
treece4bb4b3b97e3d9915318b8484522d894d322ac9 /test/python
parent76d32a1eb9f70408b48647873f200dcceab74a2a (diff)
downloadpodman-b1f5e861b0fa9220fbf2e95a2580892f98a803ca.tar.gz
podman-b1f5e861b0fa9220fbf2e95a2580892f98a803ca.tar.bz2
podman-b1f5e861b0fa9220fbf2e95a2580892f98a803ca.zip
compat: image normalization: handle sha256 prefix
When normalizing image names on the compat API, make sure to take the `sha256:` prefix into account when matching against the image ID. Otherwise, the name will mistakingly be subject to docker.io normalization. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/python')
-rw-r--r--test/python/docker/compat/test_images.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/python/docker/compat/test_images.py b/test/python/docker/compat/test_images.py
index 1e2b531b7..485a0e419 100644
--- a/test/python/docker/compat/test_images.py
+++ b/test/python/docker/compat/test_images.py
@@ -79,6 +79,7 @@ class TestImages(unittest.TestCase):
# Add more images
self.client.images.pull(constant.BB)
self.assertEqual(len(self.client.images.list()), 2)
+ self.assertEqual(len(self.client.images.list(all=True)), 2)
# List images with filter
self.assertEqual(len(self.client.images.list(filters={"reference": "alpine"})), 1)