e31f9a9811
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
138 lines
5.2 KiB
Smarty
138 lines
5.2 KiB
Smarty
{
|
|
"images": [
|
|
{
|
|
"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"
|
|
}
|
|
],
|
|
"name": "fakeimage7"
|
|
},
|
|
{
|
|
"id": "155d900f-4e14-4e4c-a73d-069cbf4541e6",
|
|
"links": [
|
|
{
|
|
"href": "%(versioned_compute_endpoint)s/images/155d900f-4e14-4e4c-a73d-069cbf4541e6",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(compute_endpoint)s/images/155d900f-4e14-4e4c-a73d-069cbf4541e6",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "http://glance.openstack.example.com/images/155d900f-4e14-4e4c-a73d-069cbf4541e6",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"name": "fakeimage123456"
|
|
},
|
|
{
|
|
"id": "a2459075-d96c-40d5-893e-577ff92e721c",
|
|
"links": [
|
|
{
|
|
"href": "%(versioned_compute_endpoint)s/images/a2459075-d96c-40d5-893e-577ff92e721c",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(compute_endpoint)s/images/a2459075-d96c-40d5-893e-577ff92e721c",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "http://glance.openstack.example.com/images/a2459075-d96c-40d5-893e-577ff92e721c",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"name": "fakeimage123456"
|
|
},
|
|
{
|
|
"id": "a440c04b-79fa-479c-bed1-0b816eaec379",
|
|
"links": [
|
|
{
|
|
"href": "%(versioned_compute_endpoint)s/images/a440c04b-79fa-479c-bed1-0b816eaec379",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(compute_endpoint)s/images/a440c04b-79fa-479c-bed1-0b816eaec379",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "http://glance.openstack.example.com/images/a440c04b-79fa-479c-bed1-0b816eaec379",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"name": "fakeimage6"
|
|
},
|
|
{
|
|
"id": "c905cedb-7281-47e4-8a62-f26bc5fc4c77",
|
|
"links": [
|
|
{
|
|
"href": "%(versioned_compute_endpoint)s/images/c905cedb-7281-47e4-8a62-f26bc5fc4c77",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(compute_endpoint)s/images/c905cedb-7281-47e4-8a62-f26bc5fc4c77",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "http://glance.openstack.example.com/images/c905cedb-7281-47e4-8a62-f26bc5fc4c77",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"name": "fakeimage123456"
|
|
},
|
|
{
|
|
"id": "cedef40a-ed67-4d10-800e-17455edce175",
|
|
"links": [
|
|
{
|
|
"href": "%(versioned_compute_endpoint)s/images/cedef40a-ed67-4d10-800e-17455edce175",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(compute_endpoint)s/images/cedef40a-ed67-4d10-800e-17455edce175",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "http://glance.openstack.example.com/images/cedef40a-ed67-4d10-800e-17455edce175",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"name": "fakeimage123456"
|
|
},
|
|
{
|
|
"id": "76fa36fc-c930-4bf3-8c8a-ea2a2420deb6",
|
|
"links": [
|
|
{
|
|
"href": "%(versioned_compute_endpoint)s/images/76fa36fc-c930-4bf3-8c8a-ea2a2420deb6",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(compute_endpoint)s/images/76fa36fc-c930-4bf3-8c8a-ea2a2420deb6",
|
|
"rel": "bookmark"
|
|
},
|
|
{
|
|
"href": "http://glance.openstack.example.com/images/76fa36fc-c930-4bf3-8c8a-ea2a2420deb6",
|
|
"rel": "alternate",
|
|
"type": "application/vnd.openstack.image"
|
|
}
|
|
],
|
|
"name": "fakeimage123456"
|
|
}
|
|
]
|
|
}
|