Commit a3092cf9 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Christos Stavrakakis

burnin: Fix a bug with image metadatas

Plankton returns properties whereas Cyclades returns
metadata for the images.
parent 75dd6307
...@@ -306,8 +306,9 @@ class ImagesTestCase(unittest.TestCase): ...@@ -306,8 +306,9 @@ class ImagesTestCase(unittest.TestCase):
def test_005_image_metadata(self): def test_005_image_metadata(self):
"""Test every image has specific metadata defined""" """Test every image has specific metadata defined"""
keys = frozenset(["osfamily", "root_partition"]) keys = frozenset(["osfamily", "root_partition"])
sys_images = filter(lambda x: x['owner'] == SYSTEM_IMAGES_USER, details = self.compute_client.list_images(detail=True)
self.dimages) sys_images = filter(lambda x: x['user_id'] == SYSTEM_IMAGES_USER,
for i in sys_images: for i in sys_images:
self.assertTrue(keys.issubset(i["metadata"].keys())) self.assertTrue(keys.issubset(i["metadata"].keys()))
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