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
0f89408e
Commit
0f89408e
authored
Aug 20, 2012
by
John Giannelos
Browse files
snf-burnin checks only "osfamily" and "root partition" in image metadata
parent
54dee8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-tools/synnefo_tools/burnin.py
View file @
0f89408e
...
...
@@ -172,7 +172,7 @@ class ImagesTestCase(unittest.TestCase):
def
test_005_image_metadata
(
self
):
"""Test every image has specific metadata defined"""
keys
=
frozenset
([
"os
"
,
"description"
,
"size
"
])
keys
=
frozenset
([
"os
family"
,
"root_partition
"
])
details
=
self
.
client
.
list_images
(
detail
=
True
)
for
i
in
details
:
self
.
assertTrue
(
keys
.
issubset
(
i
[
"metadata"
][
"values"
].
keys
()))
...
...
@@ -253,8 +253,7 @@ class SpawnServerTestCase(unittest.TestCase):
@
classmethod
def
setUpClass
(
cls
):
"""Initialize a kamaki instance"""
log
.
info
(
"Spawning server for image `%s'"
,
%
cls
.
imagename
)
log
.
info
(
"Spawning server for image `%s'"
%
cls
.
imagename
)
cls
.
client
=
ComputeClient
(
API
,
TOKEN
)
cls
.
cyclades
=
CycladesClient
(
API
,
TOKEN
)
...
...
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