nova/nova/tests/functional/api_sample_tests/api_samples/images/image-get-resp.json.tpl
Sean Dague e31f9a9811 update API samples to use endpoints
The use of %(host) and an hardcoded project_id makes the templates
less semantically meaningful or flexible than they should be. It means
all manner of hackery will need to be done to run a set of tests
without project_id.

This introduces two new semantic variables, ``compute_endpoint`` which
is the unversioned compute endpoint (i.e. schema://host/project_id)
and the ``versioned_compute_endpoint`` which includes the API version.

Change-Id: Iead42f60c9e0cb703fc963e423e7bb99ca71094c
2015-12-10 08:32:41 -05:00

36 lines
1.1 KiB
Smarty

{
"image": {
"OS-DCF:diskConfig": "AUTO",
"created": "2011-01-01T01:02:03Z",
"id": "70a599e0-31e7-49b7-b260-868f441e862b",
"links": [
{
"href": "%(versioned_compute_endpoint)s/images/70a599e0-31e7-49b7-b260-868f441e862b",
"rel": "self"
},
{
"href": "%(compute_endpoint)s/images/70a599e0-31e7-49b7-b260-868f441e862b",
"rel": "bookmark"
},
{
"href": "http://glance.openstack.example.com/images/70a599e0-31e7-49b7-b260-868f441e862b",
"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",
"OS-EXT-IMG-SIZE:size": %(int)s,
"progress": 100,
"status": "ACTIVE",
"updated": "2011-01-01T01:02:03Z"
}
}