Merge "Verify list_addresses_by_network APIs attributes"

This commit is contained in:
Jenkins 2014-05-10 11:47:51 +00:00 committed by Gerrit Code Review
commit a8104a689f
4 changed files with 12 additions and 0 deletions

View File

@ -123,3 +123,8 @@ set_get_server_metadata_item = {
'required': ['meta']
}
}
list_addresses_by_network = {
'status_code': [200],
'response_body': parameter_types.addresses
}

View File

@ -76,3 +76,8 @@ attach_detach_volume = {
}
set_get_server_metadata_item = copy.deepcopy(servers.set_server_metadata)
list_addresses_by_network = {
'status_code': [200],
'response_body': addresses_v3
}

View File

@ -200,6 +200,7 @@ class ServersClientJSON(rest_client.RestClient):
resp, body = self.get("servers/%s/ips/%s" %
(str(server_id), network_id))
body = json.loads(body)
self.validate_response(schema.list_addresses_by_network, resp, body)
return resp, body
def action(self, server_id, action_name, response_key,

View File

@ -200,6 +200,7 @@ class ServersV3ClientJSON(rest_client.RestClient):
resp, body = self.get("servers/%s/ips/%s" %
(str(server_id), network_id))
body = json.loads(body)
self.validate_response(schema.list_addresses_by_network, resp, body)
return resp, body
def action(self, server_id, action_name, response_key, **kwargs):