Commit fbae8c6e authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix broken test

Mock getting image from plankton.
parent 6ac54ca9
......@@ -301,6 +301,12 @@ class ServerCreateAPITest(ComputeAPITest):
"personality": []
}
}
mimage.return_value = {'location': 'pithos://foo',
'checksum': '1234',
"id": 1,
"name": "test_image",
"size": "41242",
'disk_format': 'diskdump'}
response = self.mypost('servers', 'test_user',
json.dumps(request), 'json')
self.assertItemNotFound(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