Commit b873731c authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis

Update unit tests

parent 40f3cf71
......@@ -139,7 +139,7 @@ class LoggedAstakosClient(TestCase):
def tearDown(self):
FR.headers = {}
@patch('kamaki.clients.recvlog.debug', return_value='recvlog info')
@patch('kamaki.clients.recvlog.info', return_value='recvlog info')
def test__dump_response(self, recvlog_info):
for headers, status, message, data, LOG_DATA, LOG_TOKEN in product(
(
......
......@@ -132,7 +132,7 @@ class CycladesComputeRestClient(TestCase):
self.assertEqual(r, 'ret')
post.assert_called_once_with(
u'/servers/%s/os-volume_attachments' % server_id,
json={'volumeAttachment': {'volumeId': volume_id}}, success=200)
json={'volumeAttachment': {'volumeId': volume_id}}, success=202)
@patch('kamaki.clients.Client.delete')
def test_volume_attachment_delete(self, delete):
......@@ -140,7 +140,7 @@ class CycladesComputeRestClient(TestCase):
self.client.volume_attachment_delete(server_id, att_id)
delete.assert_called_once_with(
u'/servers/%s/os-volume_attachments/%s' % (server_id, att_id),
success=200)
success=202)
class CycladesNetworkClient(TestCase):
......
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