diff options
Diffstat (limited to 'vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py')
-rw-r--r-- | vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py b/vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py index c0ca1dc..16d33ac 100644 --- a/vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py +++ b/vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py @@ -737,6 +737,25 @@ def show_project(token, projectid=""): return data +# used for keystonev2 +def get_tenants(): + + data = \ + { + "tenants": [ + { + "id": Tenantid, + "name": "admin", + "description": "A description ...", + "enabled": true + } + ], + "tenants_links": [] + } + + return data + + def get_serverdetail(token): data = {"servers": []} @@ -1869,6 +1888,105 @@ def list_image(): return data +def image_version(): + + data = { + "versions": [ + { + "id": "v2.6", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "EXPERIMENTAL" + }, + { + "id": "v2.5", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "CURRENT" + }, + { + "id": "v2.4", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "SUPPORTED" + }, + { + "id": "v2.3", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "SUPPORTED" + }, + { + "id": "v2.2", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "SUPPORTED" + }, + { + "id": "v2.1", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "SUPPORTED" + }, + { + "id": "v2.0", + "links": [ + { + "href": "http://glance.openstack.example.org/v2/", + "rel": "self" + } + ], + "status": "SUPPORTED" + }, + { + "id": "v1.1", + "links": [ + { + "href": "http://glance.openstack.example.org/v1/", + "rel": "self" + } + ], + "status": "DEPRECATED" + }, + { + "id": "v1.0", + "links": [ + { + "href": "http://glance.openstack.example.org/v1/", + "rel": "self" + } + ], + "status": "DEPRECATED" + } + ] + } + return data + + def image_schema(): data = { |