Commit afc11d72 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

burnin: Fix a bug in ImagesTestCase

Filter images list so it does not contain burnin's registered
images. This way we reduce the posibility that images list and
detailed images list have different number of images.
parent fd7a0931
......@@ -236,8 +236,12 @@ class ImagesTestCase(unittest.TestCase):"Getting simple and detailed list of images")
cls.client = ComputeClient(API, TOKEN)
cls.plankton = ImageClient(PLANKTON, TOKEN)
cls.images = cls.plankton.list_public()
cls.dimages = cls.plankton.list_public(detail=True)
cls.images = \
filter(lambda x: not x['name'].startswith(SNF_TEST_PREFIX),
cls.dimages = \
filter(lambda x: not x['name'].startswith(SNF_TEST_PREFIX),
cls.result_dict = dict()
# Get uniq user id
cls.uuid = _get_user_id()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment