diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-02-21 16:51:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 16:51:37 -0500 |
commit | f1d510b68236794d5e81e84a0d78fe729af3d056 (patch) | |
tree | 24a78c1cc194ba61ed07701d02c1667a73fe2718 /test/python/docker/compat/test_images.py | |
parent | a54320a793c156e13d6880f7e898ac8232623a60 (diff) | |
parent | 4fa7a2e3ae64b2b5d3f0fefd82fa1b6905e66f87 (diff) | |
download | podman-f1d510b68236794d5e81e84a0d78fe729af3d056.tar.gz podman-f1d510b68236794d5e81e84a0d78fe729af3d056.tar.bz2 podman-f1d510b68236794d5e81e84a0d78fe729af3d056.zip |
Merge pull request #13290 from cevich/v3.4_since_after_tests
Fix AssertionError: 'alpine' not found in 'docker.io/docker/desktop-kubernetes'
Diffstat (limited to 'test/python/docker/compat/test_images.py')
-rw-r--r-- | test/python/docker/compat/test_images.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/python/docker/compat/test_images.py b/test/python/docker/compat/test_images.py index 1e2b531b7..cb3f84cec 100644 --- a/test/python/docker/compat/test_images.py +++ b/test/python/docker/compat/test_images.py @@ -83,10 +83,14 @@ class TestImages(unittest.TestCase): # List images with filter self.assertEqual(len(self.client.images.list(filters={"reference": "alpine"})), 1) - def test_search_image(self): - """Search for image""" - for r in self.client.images.search("alpine"): - self.assertIn("alpine", r["Name"]) + # Disabled due to dependence on potentially unstable search results and + # failures because podman truncates image descriptions which otherwise + # would satisfy test condition. + #def test_search_image(self): + # """Search for image""" + # for r in self.client.images.search("alpine"): + # # 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""" |