Verify the create/delete volume APIs attributes
This patch adds the JSON schema for volume create & delete APIs
and validate the response of Nova Volume list APIs with added JSON
schema to block the backward incompatibility change in the future.
The response body of Nova API volume create is the below:
{
"volume": {
"id": "%(uuid)s",
"status": "in-use",
"displayName": "%(volume_name)s", null
"availabilityZone": "zone1:host1",
"createdAt": "%(timestamp)s",
"displayDescription": "%(volume_desc)s",
"volumeType": "Backup",
"snapshotId": null,
"metadata": {},
"size": 100,
"attachments": [
{ "device": "/",
"serverId": "%(uuid)s",
"id": "%(uuid)s",
"volumeId": "%(uuid)s"
}
]
}
}
delete volume API does not return any response body.
Partially implements blueprint nova-api-attribute-test
Change-Id: I84069dae64a70bc2a4f2313bb3da4e86630e4b1b
2 files changed