summaryrefslogtreecommitdiff
path: root/test/python/docker/test_images.py
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-26 13:05:55 +0100
committerGitHub <noreply@github.com>2021-01-26 13:05:55 +0100
commitefcd48b9668612eb975a299b79e7b6673a5addce (patch)
tree49ebcae47c8af363339b180624eac7f48bc8ef3d /test/python/docker/test_images.py
parente5e447debc0e011913e4389041e1561a5119a7eb (diff)
parent74a63df0539ce1488353f03c7cb100ee4bbc7e73 (diff)
downloadpodman-efcd48b9668612eb975a299b79e7b6673a5addce.tar.gz
podman-efcd48b9668612eb975a299b79e7b6673a5addce.tar.bz2
podman-efcd48b9668612eb975a299b79e7b6673a5addce.zip
Merge pull request #9070 from rhatdan/search
Fixup search
Diffstat (limited to 'test/python/docker/test_images.py')
-rw-r--r--test/python/docker/test_images.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/python/docker/test_images.py b/test/python/docker/test_images.py
index 1fa4aade9..f2b6a5190 100644
--- a/test/python/docker/test_images.py
+++ b/test/python/docker/test_images.py
@@ -82,8 +82,16 @@ class TestImages(unittest.TestCase):
def test_search_image(self):
"""Search for image"""
- for r in self.client.images.search("libpod/alpine"):
- self.assertIn("quay.io/libpod/alpine", r["Name"])
+ for r in self.client.images.search("alpine"):
+ self.assertIn("alpine", r["Name"])
+
+ def test_search_bogus_image(self):
+ """Search for bogus image should throw exception"""
+ try:
+ r = self.client.images.search("bogus/bogus")
+ except:
+ return
+ self.assertTrue(len(r)==0)
def test_remove_image(self):
"""Remove image"""