Revision 846980fe
b/snf-tools/synnefo_tools/burnin.py | ||
---|---|---|
107 | 107 |
"""Initialize kamaki, get (detailed) list of images""" |
108 | 108 |
log.info("Getting simple and detailed list of images") |
109 | 109 |
|
110 |
cls.client = ComputeClient(API, TOKEN) |
|
110 | 111 |
cls.plankton = ImageClient(PLANKTON, TOKEN) |
111 | 112 |
cls.images = cls.plankton.list_public() |
112 | 113 |
cls.dimages = cls.plankton.list_public(detail=True) |
... | ... | |
135 | 136 |
def test_005_image_metadata(self): |
136 | 137 |
"""Test every image has specific metadata defined""" |
137 | 138 |
keys = frozenset(["os", "description", "size"]) |
138 |
for i in self.dimages: |
|
139 |
details = self.client.list_images(detail=True) |
|
140 |
for i in details: |
|
139 | 141 |
self.assertTrue(keys.issubset(i["metadata"]["values"].keys())) |
140 | 142 |
|
141 | 143 |
|
... | ... | |
690 | 692 |
cls.serverid = dict() |
691 | 693 |
cls.username = dict() |
692 | 694 |
cls.password = dict() |
693 |
cls.is_windows = imagename.lower().find("windows") >= 0 |
|
695 |
cls.is_windows = cls.imagename.lower().find("windows") >= 0
|
|
694 | 696 |
|
695 | 697 |
def _skipIf(self, condition, msg): |
696 | 698 |
if condition: |
Also available in: Unified diff