nova/nova/tests/integrated/api_samples/image-get-resp.json.tpl
Mauro S. M. Rodrigues b957a3553e Add API samples to images api
Fixes issue with updated metata not being returned properly from
the api. Adds a small check to the samples baseclass to allow the
output to be generated even if the template file is empty.

Change-Id: Idcdd24d7e785026e50b9abf4762466fd55a8d42f
2012-09-03 08:17:44 -04:00

34 lines
926 B
Smarty

{
"image": {
"created": "2011-01-01T01:02:03Z",
"id": "%(image_id)s",
"links": [
{
"href": "%(host)s/v2/openstack/images/%(image_id)s",
"rel": "self"
},
{
"href": "%(host)s/openstack/images/%(image_id)s",
"rel": "bookmark"
},
{
"href": "%(glance_host)s/openstack/images/%(image_id)s",
"rel": "alternate",
"type": "application/vnd.openstack.image"
}
],
"metadata": {
"architecture": "x86_64",
"auto_disk_config": "True",
"kernel_id": "nokernel",
"ramdisk_id": "nokernel"
},
"minDisk": 0,
"minRam": 0,
"name": "fakeimage7",
"progress": 100,
"status": "ACTIVE",
"updated": "%(timestamp)s"
}
}