aboutsummaryrefslogtreecommitdiff
path: root/test/python
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-16 11:33:43 -0500
committerGitHub <noreply@github.com>2022-02-16 11:33:43 -0500
commitaa1a6b6eaaa6700c0c0f42b60837bbf1b1af3c55 (patch)
treee3b90ebd47c6bf76fedff00ddf217626c4899082 /test/python
parentab3e566d747551492dac8410c3023915491e2540 (diff)
parent09708bee9c9057da5cc414506ca7b8a6678d3721 (diff)
downloadpodman-aa1a6b6eaaa6700c0c0f42b60837bbf1b1af3c55.tar.gz
podman-aa1a6b6eaaa6700c0c0f42b60837bbf1b1af3c55.tar.bz2
podman-aa1a6b6eaaa6700c0c0f42b60837bbf1b1af3c55.zip
Merge pull request #13249 from baude/backporte2efixes
[BACKPORT] Backporte2efixes
Diffstat (limited to 'test/python')
-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"""