summaryrefslogtreecommitdiffstats
path: root/docs/MultiCloud-Test-Guide.rst
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-06-05 17:26:55 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2018-06-05 19:13:16 +0800
commitb3e79cc6ebba2898e201426b59c1bc8caa347a6a (patch)
tree8107165bb6733e29492dbc3f1196d2d99fb50cfc /docs/MultiCloud-Test-Guide.rst
parenta47bd5937ca0a7dd88533c05cbf8e67010ab56f2 (diff)
Fix style Change-Id: Ifee26b7453de51f63bd37b0289ab3ccdc0697ec2 Issue-ID: MULTICLOUD-239 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'docs/MultiCloud-Test-Guide.rst')
-rw-r--r--docs/MultiCloud-Test-Guide.rst58
1 files changed, 36 insertions, 22 deletions
diff --git a/docs/MultiCloud-Test-Guide.rst b/docs/MultiCloud-Test-Guide.rst
index c48bb79..b77b115 100644
--- a/docs/MultiCloud-Test-Guide.rst
+++ b/docs/MultiCloud-Test-Guide.rst
@@ -9,16 +9,20 @@ ONAP MultiCloud Test Guide
Test Examples
~~~~~~~~~~~~~
-The env HOST_IP is msb-iag service cluster-ip value is "10.43.188.78"(see it above).
+The env HOST_IP is msb-iag service cluster-ip value is "10.43.188.78"(see it
+above).
The vimid is "vmware_vio" the registered name in aai.
Get V2 auth token
-----------------
-# VIO openstack support keystone V2 version, vio proxy-plugin will check the request body format, if request body format
-# is keystone V2 format will access keystone V2 service, if not it will access keystone V3 service.
+# VIO openstack support keystone V2 version, vio proxy-plugin will check the
+request body format, if request body format
+# is keystone V2 format will access keystone V2 service, if not it will access
+keystone V3 service.
# this example show how to access keystone V2 service.
+
.. code-block:: console
$ curl -X POST -d @testV2.json -H 'Content-Type:application/json' http://$msb_address/api/multicloud/v0/<vimid>/identity/v2.0/tokens
@@ -39,18 +43,23 @@ testV2.json content:
Response:
-There are a large amounts of data including service endpoint, user information, etc.
-For our testing We take nova and identity service endpoint address and auth token which is in response header named “X-Subject-Token”.
+There are a large amounts of data including service endpoint, user information,
+etc.
+For our testing We take nova and identity service endpoint address and auth
+token which is in response header named “X-Subject-Token”.
-# you can find the endpoint url namespace is "api/multicloiud-vio/v0", it represent the multicloud-vio service, So
+# you can find the endpoint url namespace is "api/multicloiud-vio/v0", it
+represent the multicloud-vio service, So
requests sending to mulitcloud-vio will be forwarded to backend VIO openstack.
-Identity endpoint:
- http://$msb_address/api/multicloud-vio/v0/<vimid>/identity
+Identity endpoint::
+
+ http://$msb_address/api/multicloud-vio/v0/<vimid>/identity
+
+Nova endpoint::
-Nova endpoint:
- http://$msb_address/api/multicloud-vio/v0/<vimid>/nova/<user-tenantid>
+ http://$msb_address/api/multicloud-vio/v0/<vimid>/nova/<user-tenantid>
Get V3 auth token
@@ -70,26 +79,31 @@ test.json content example:
"auth": sudo pip install virtualenv{
"scope": {"project": {"id": “<project-id>”}},
"identity":
- {
- "password": {"user": {"domain": {"name": “<doman-name>”}, "password": “<user-password>”, "name": “<user-name>”}}, "methods": ["password"]
- }
+ {
+ "password": {"user": {"domain": {"name": “<doman-name>”}, "password": “<user-password>”, "name": “<user-name>”}}, "methods": ["password"]
+ }
}
}
Response:
-There are a large amounts of data including service endpoint, user information, etc.
-For our testing We take nova and identity service endpoint address and auth token which is in response header named “X-Subject-Token”.
+There are a large amounts of data including service endpoint, user information,
+etc.
+For our testing We take nova and identity service endpoint address and auth
+token which is in response header named “X-Subject-Token”.
-# you can find the endpoint url namespace is "api/multicloiud-vio/v0", it represent the multicloud-vio service, So
+# you can find the endpoint url namespace is "api/multicloiud-vio/v0", it
+represent the multicloud-vio service, So
requests sending to mulitcloud-vio will be forwarded to backend VIO openstack.
-Identity endpoint:
- http://$msb_address/api/multicloud-vio/v0/<vimid>/identity
+Identity endpoint::
+
+ http://$msb_address/api/multicloud-vio/v0/<vimid>/identity
+
+Nova endpoint::
-Nova endpoint:
- http://$msb_address/api/multicloud-vio/v0/<vimid>/nova/<user-tenantid>
+ http://$msb_address/api/multicloud-vio/v0/<vimid>/nova/<user-tenantid>
List projects
@@ -221,8 +235,8 @@ get the taskid from response body,then query the task status by taskid.
$ curl -X GET -H 'X-Auth-Token:<token>' http://$msb_address/api/multicloud-vio/v0/<vimid>/glance/v2/tasks/<taskid>
-You can see the description and properties of task in response body,if 'status' is success, it will show image_id in
-result block.
+You can see the description and properties of task in response body,if 'status'
+is success, it will show image_id in result block.
query the image status by image_id