Disable search-images test

Found images being returned which do have "Alpine" in the description.
However, test fails because podman truncates the field.  Disabling test
since this is a long-term maintenance branch.

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich 2022-02-21 10:54:04 -05:00
parent e906e9cd37
commit 4fa7a2e3ae
No known key found for this signature in database
GPG key ID: 03EDC70FD578067F

View file

@ -83,11 +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"):
# registry matches if string is in either one
self.assertIn("alpine", r["Name"]+" "+r["Description"].lower())
# 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"""