Check detail list Images attributes of Nova V2 API
This patch adds the JSON Schema for response of Nova V2 detail list
Images API and validate the response with added JSON Schema to block
the backward incompatibility change in the future.
The response body of V2 detail list Images API is below:
{
"images": [
{
"id": "70a599e0-31e7-49b7-b260-868f441e862b",
"status": "ACTIVE",
"updated": "2011-01-01T01:02:03Z",
"links": [
{
"href": "http://openstack.example.com/v2/openstack/
images/70a599e0-31e7-49b7-b260-868f1e862b",
"rel": "self"
},
{
"href": "http://openstack.example.com/openstack/
images/70a599e0-31e7-49b7-b260-868f1e862b",
"rel": "bookmark"
},
{
"href": "http://glance.openstack.example.com/
openstack/images/
70a599e0-31e7-49b7-b260-868f1e862b",
"rel": "alternate",
"type": "application/vnd.openstack.image"
}
],
"name": "fakeimage7",
"created": "2011-01-01T01:02:03Z",
"minDisk": 0,
"minRam": 0,
"progress": 100,
"metadata": {
"architecture": "x86_64",
"auto_disk_config": "True",
"kernel_id": "nokernel",
"ramdisk_id": "nokernel"
},
"server": {
"id": "65802d04-c684-4900-b645-a6a15f78add4",
"links": [
{
"href": "http://10.21.43.120:8774/v3/
f0468e49de7b4f74ba6dd3a72481/servers/
65802d04-c684-4900-b645-a6a15f78add4",
"rel": "self"
}
]
},
"OS-EXT-IMG-SIZE:size": 25165824
}
]
}
Partially implements blueprint nova-api-attribute-test
Change-Id: Iee859f35c029254e5f2d74446ed40acaa90410c2
2 files changed