diff options
author | xinhuili <lxinhui@vmware.com> | 2017-10-31 10:37:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-31 10:37:02 +0000 |
commit | d84b547bf4aa3b12109677d7d0c5a7759ead80b5 (patch) | |
tree | 81cb05ec07c6e476a7b79b6981a0e06d762f44fc /vio/vio/swagger/views/fakeplugin/fakeData/fakeResponse.py | |
parent | 0a5efffd79eaf4d28370add436f387f2993ca4f3 (diff) | |
parent | 6b4a98c714abf92c01ade2334304529fca57d4c4 (diff) |
Merge "Add some functions of fake_cloud"
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 = { |