Commit baa9df88 authored by Christos Stavrakakis's avatar Christos Stavrakakis

cyclades: Fix bug in floating IP test

parent d425dd9f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment