summaryrefslogtreecommitdiff
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 10:49:35 -0600
commit04badc2c9c7a3fde06d0069093840ec1d5a17eca (patch)
tree9f49b401fc4ba77a4f5c7635c9b7c20daaa4e7e3
parent629d86445961f452763b7e4a031e98a4e19daff6 (diff)
downloadpodman-04badc2c9c7a3fde06d0069093840ec1d5a17eca.tar.gz
podman-04badc2c9c7a3fde06d0069093840ec1d5a17eca.tar.bz2
podman-04badc2c9c7a3fde06d0069093840ec1d5a17eca.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>
-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"""