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
962dfe09
Commit
962dfe09
authored
Nov 29, 2013
by
Christos Stavrakakis
Browse files
cyclades: Fix broken unittest
parent
ecf4ed38
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/logic/tests/servers.py
View file @
962dfe09
...
...
@@ -53,6 +53,7 @@ class ServerCreationTest(TransactionTestCase):
"flavor"
:
flavor
,
"image"
:
{
"id"
:
"foo"
,
"backend_id"
:
"foo"
,
"format"
:
"diskdump"
,
"metadata"
:
"{}"
},
"networks"
:
[],
"metadata"
:
{
"foo"
:
"bar"
},
"personality"
:
[],
}
...
...
@@ -78,7 +79,6 @@ class ServerCreationTest(TransactionTestCase):
vm
=
models
.
VirtualMachine
.
objects
.
get
()
self
.
assertFalse
(
vm
.
deleted
)
self
.
assertEqual
(
vm
.
operstate
,
"ERROR"
)
self
.
assertEqual
(
len
(
vm
.
nics
.
all
()),
2
)
for
nic
in
vm
.
nics
.
all
():
self
.
assertEqual
(
nic
.
state
,
"ERROR"
)
...
...
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