Commit c0b795f8 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

GET subnets status code 201 --> 200

parent b93910fc
......@@ -180,7 +180,7 @@ class NetworkClient(NetworkRestClient, Waiter):
return r.json['subnets']
def get_subnet_details(self, subnet_id):
r = self.subnets_get(subnet_id, success=201)
r = self.subnets_get(subnet_id, success=200)
return r.json
def update_subnet(
......
......@@ -391,7 +391,7 @@ class NetworkClient(TestCase):
def test_get_subnet_details(self, subnets_get):
subid, FakeObject.json = 'subid', 'ret val'
self.assertEqual(self.client.get_subnet_details(subid), 'ret val')
subnets_get.assert_called_once_with(subid, success=201)
subnets_get.assert_called_once_with(subid, success=200)
@patch(
'kamaki.clients.network.NetworkClient.subnets_put',
......
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