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
baa9df88
Commit
baa9df88
authored
Oct 09, 2013
by
Christos Stavrakakis
Browse files
cyclades: Fix bug in floating IP test
parent
d425dd9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/tests/floating_ips.py
View file @
baa9df88
...
...
@@ -306,8 +306,9 @@ class FloatingIPActionsTest(BaseAPITest):
ip1_after
=
FloatingIP
.
objects
.
get
(
id
=
ip1
.
id
)
self
.
assertEqual
(
ip1_after
.
machine
,
self
.
vm
)
self
.
assertTrue
(
ip1_after
.
in_use
())
self
.
vm
.
nics
.
create
(
ipv4
=
ip1_after
.
ipv4
,
network
=
ip1_after
.
network
,
state
=
"ACTIVE"
,
index
=
0
)
nic
=
self
.
vm
.
nics
.
get
(
ipv4
=
ip1_after
.
ipv4
)
nic
.
state
=
"ACTIVE"
nic
.
save
()
response
=
self
.
get
(
SERVERS_URL
+
"/%s"
%
self
.
vm
.
id
,
self
.
vm
.
userid
)
self
.
assertSuccess
(
response
)
...
...
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