tempest/tempest/api/compute/api_schema
Ghanshyam ff9d636053 Validate Volume attributes of Nova POST & GET API
This patch adds the JSON schema and validate the response
of Nova POST & GET Volume APIs with JSON schema to block
the backward incompatibility change in the future.

The response body of Nova POST & GET Volume is the following:

{
    "volume": {
        "attachments": [
            {
                "device": "/",
                "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
                "serverId": "3912f2b4-c5ba-4aec-9165-872876fe202e",
                "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f803"
            }
        ],
        "availabilityZone": "zone1:host1",
        "createdAt": "2013-02-18T14:51:18.528085",
        "displayDescription": "Volume Description",
        "displayName": "Volume Name",
        "id": "a26887c6-c47b-4654-abb5-dfadf7d3f803",
        "metadata": {},
        "size": 100,
        "snapshotId": null,
        "status": "in-use",
        "volumeType": "Backup"
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: I7b98b375b87577d9bb9cf80b2fedd3b65ad0cd72
2014-03-13 11:51:40 +09:00
..
v2 Validate Volume attributes of Nova POST & GET API 2014-03-13 11:51:40 +09:00
__init__.py Verify service attributes through Nova "get services" API 2014-03-12 10:17:53 +09:00
services.py Verify service attributes through Nova "get services" API 2014-03-12 10:17:53 +09:00