Skip to content

Commit

Permalink
Changes of docker descriptions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
baude authored and cevich committed Feb 18, 2022
1 parent ce5359f commit 2fd1ff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/python/docker/compat/test_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def test_list_images(self):
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"""
Expand Down

0 comments on commit 2fd1ff9

Please sign in to comment.