Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a3092cf9
Commit
a3092cf9
authored
Jul 15, 2013
by
Ilias Tsitsimpis
Committed by
Christos Stavrakakis
Sep 24, 2013
Browse files
burnin: Fix a bug with image metadatas
Plankton returns properties whereas Cyclades returns metadata for the images.
parent
75dd6307
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-tools/synnefo_tools/burnin.py
View file @
a3092cf9
...
...
@@ -306,8 +306,9 @@ class ImagesTestCase(unittest.TestCase):
def
test_005_image_metadata
(
self
):
"""Test every image has specific metadata defined"""
keys
=
frozenset
([
"osfamily"
,
"root_partition"
])
sys_images
=
filter
(
lambda
x
:
x
[
'owner'
]
==
SYSTEM_IMAGES_USER
,
self
.
dimages
)
details
=
self
.
compute_client
.
list_images
(
detail
=
True
)
sys_images
=
filter
(
lambda
x
:
x
[
'user_id'
]
==
SYSTEM_IMAGES_USER
,
details
)
for
i
in
sys_images
:
self
.
assertTrue
(
keys
.
issubset
(
i
[
"metadata"
].
keys
()))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment