diff options
Diffstat (limited to 'nova/tests/unit/integrated/api_samples/OS-EXT-STS/servers-detail-resp.json.tpl')
-rw-r--r-- | nova/tests/unit/integrated/api_samples/OS-EXT-STS/servers-detail-resp.json.tpl | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/nova/tests/unit/integrated/api_samples/OS-EXT-STS/servers-detail-resp.json.tpl b/nova/tests/unit/integrated/api_samples/OS-EXT-STS/servers-detail-resp.json.tpl new file mode 100644 index 0000000000..94b3e2200c --- /dev/null +++ b/nova/tests/unit/integrated/api_samples/OS-EXT-STS/servers-detail-resp.json.tpl @@ -0,0 +1,58 @@ +{ + "servers": [ + { + "status": "ACTIVE", + "updated": "%(isotime)s", + "OS-EXT-STS:task_state": null, + "user_id": "fake", + "addresses": { + "private": [ + { + "addr": "%(ip)s", + "version": 4 + } + ] + }, + "links": [ + { + "href": "%(host)s/v2/openstack/servers/%(id)s", + "rel": "self" + }, + { + "href": "%(host)s/openstack/servers/%(id)s", + "rel": "bookmark" + } + ], + "created": "%(isotime)s", + "name": "new-server-test", + "image": { + "id": "%(uuid)s", + "links": [ + { + "href": "%(host)s/openstack/images/%(uuid)s", + "rel": "bookmark" + } + ] + }, + "id": "%(uuid)s", + "accessIPv4": "", + "accessIPv6": "", + "OS-EXT-STS:vm_state": "active", + "tenant_id": "openstack", + "progress": 0, + "OS-EXT-STS:power_state": 1, + "flavor": { + "id": "1", + "links": [ + { + "href": "%(host)s/openstack/flavors/1", + "rel": "bookmark" + } + ] + }, + "hostId": "%(hostid)s", + "metadata": { + "My Server Name": "Apache1" + } + }] +} |