summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2022-02-15 15:21:00 -0600
committerBrent Baude <bbaude@redhat.com>2022-02-16 08:38:50 -0600
commit35a4f32be64e6e9cf7ae949a96e3703619305d31 (patch)
tree86e51c833d97624f80e7cde1db4236c08bf15671 /test
parentab3e566d747551492dac8410c3023915491e2540 (diff)
downloadpodman-35a4f32be64e6e9cf7ae949a96e3703619305d31.tar.gz
podman-35a4f32be64e6e9cf7ae949a96e3703619305d31.tar.bz2
podman-35a4f32be64e6e9cf7ae949a96e3703619305d31.zip
Changes of docker descriptions
It looks like some descriptions have changed on the docker registry where we had been searching for images that include 'alpine'. We are now seeing an image in the initial list that has 'alpine' in its description. Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/python/docker/compat/test_images.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/python/docker/compat/test_images.py b/test/python/docker/compat/test_images.py
index 485a0e419..05d0e3e12 100644
--- a/test/python/docker/compat/test_images.py
+++ b/test/python/docker/compat/test_images.py
@@ -87,7 +87,8 @@ class TestImages(unittest.TestCase):
def test_search_image(self):
"""Search for image"""
for r in self.client.images.search("alpine"):
- self.assertIn("alpine", r["Name"])
+ # registry matches if string is in either one
+ self.assertIn("alpine", r["Name"]+" "+r["Description"].lower())
def test_search_bogus_image(self):
"""Search for bogus image should throw exception"""