Commit 962dfe09 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix broken unittest

parent ecf4ed38
...@@ -53,6 +53,7 @@ class ServerCreationTest(TransactionTestCase): ...@@ -53,6 +53,7 @@ class ServerCreationTest(TransactionTestCase):
"flavor": flavor, "flavor": flavor,
"image": {"id": "foo", "backend_id": "foo", "format": "diskdump", "image": {"id": "foo", "backend_id": "foo", "format": "diskdump",
"metadata": "{}"}, "metadata": "{}"},
"networks": [],
"metadata": {"foo": "bar"}, "metadata": {"foo": "bar"},
"personality": [], "personality": [],
} }
...@@ -78,7 +79,6 @@ class ServerCreationTest(TransactionTestCase): ...@@ -78,7 +79,6 @@ class ServerCreationTest(TransactionTestCase):
vm = models.VirtualMachine.objects.get() vm = models.VirtualMachine.objects.get()
self.assertFalse(vm.deleted) self.assertFalse(vm.deleted)
self.assertEqual(vm.operstate, "ERROR") self.assertEqual(vm.operstate, "ERROR")
self.assertEqual(len(vm.nics.all()), 2)
for nic in vm.nics.all(): for nic in vm.nics.all():
self.assertEqual(nic.state, "ERROR") self.assertEqual(nic.state, "ERROR")
......
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