Merge "Return complete response from compute fixed_ips_client"
This commit is contained in:
@@ -51,7 +51,7 @@ class FixedIPsTestJson(base.BaseV2ComputeAdminTest):
|
||||
@test.services('network')
|
||||
def test_list_fixed_ip_details(self):
|
||||
fixed_ip = self.client.show_fixed_ip(self.ip)
|
||||
self.assertEqual(fixed_ip['address'], self.ip)
|
||||
self.assertEqual(fixed_ip['fixed_ip']['address'], self.ip)
|
||||
|
||||
@test.idempotent_id('5485077b-7e46-4cec-b402-91dc3173433b')
|
||||
@test.services('network')
|
||||
|
||||
@@ -26,7 +26,7 @@ class FixedIPsClient(service_client.ServiceClient):
|
||||
resp, body = self.get(url)
|
||||
body = json.loads(body)
|
||||
self.validate_response(schema.get_fixed_ip, resp, body)
|
||||
return service_client.ResponseBody(resp, body['fixed_ip'])
|
||||
return service_client.ResponseBody(resp, body)
|
||||
|
||||
def reserve_fixed_ip(self, fixed_ip, **kwargs):
|
||||
"""This reserves and unreserves fixed ips."""
|
||||
|
||||
Reference in New Issue
Block a user