Commit 875626e1 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix broken tests from commit #8936368

Commit #8936368 used the "size" attribute of images. This commit
fixes mocked images of tests to contain this attribute.
parent 1e12121f
......@@ -241,6 +241,7 @@ class ServerCreateAPITest(ComputeAPITest):
mimage.return_value = {'location': 'pithos://foo',
'checksum': '1234',
"id": 1,
"size": "41242",
"name": "test_image",
'disk_format': 'diskdump'}
mrapi().CreateInstance.return_value = 12
......@@ -311,6 +312,7 @@ class ServerCreateAPITest(ComputeAPITest):
'checksum': '1234',
"id": 1,
"name": "test_image",
"size": "41242",
'disk_format': 'diskdump'}
mrapi().CreateInstance.side_effect = GanetiApiError("..ganeti is down")
flavor = mfactory.FlavorFactory()
......
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