Merge "Verify delete-Floating-IP-Bulk Nova API attributes"

This commit is contained in:
Jenkins 2014-07-01 13:37:22 +00:00 committed by Gerrit Code Review
commit e6e096f8ed
2 changed files with 12 additions and 0 deletions

View File

@ -117,3 +117,14 @@ create_floating_ips_bulk = {
'required': ['floating_ips_bulk_create']
}
}
delete_floating_ips_bulk = {
'status_code': [200],
'response_body': {
'type': 'object',
'properties': {
'floating_ips_bulk_delete': {'type': 'string'}
},
'required': ['floating_ips_bulk_delete']
}
}

View File

@ -137,4 +137,5 @@ class FloatingIPsClientJSON(rest_client.RestClient):
post_body = json.dumps({'ip_range': ip_range})
resp, body = self.put('os-floating-ips-bulk/delete', post_body)
body = json.loads(body)
self.validate_response(schema.delete_floating_ips_bulk, resp, body)
return resp, body['floating_ips_bulk_delete']