diff options
author | 2017-08-29 14:48:29 +0800 | |
---|---|---|
committer | 2017-08-29 14:50:43 +0800 | |
commit | 003f99c36220f6008d51df4a66cd59c33320ef53 (patch) | |
tree | 96f723c5b9a18fc7f513489e2d1eb0e6d27470b5 /test/csit/tests/multicloud/provision/sanity_test_multivim.robot | |
parent | fe0546b6b857d76d092ff495713f29c611e5d0ea (diff) |
Rename multivim to multicloud
Change-Id: I395bf2a583194fbfadade29210934b50189cdb92
issue-id: MULTICLOUD-67
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'test/csit/tests/multicloud/provision/sanity_test_multivim.robot')
-rw-r--r-- | test/csit/tests/multicloud/provision/sanity_test_multivim.robot | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/csit/tests/multicloud/provision/sanity_test_multivim.robot b/test/csit/tests/multicloud/provision/sanity_test_multivim.robot new file mode 100644 index 000000000..6dc57cc42 --- /dev/null +++ b/test/csit/tests/multicloud/provision/sanity_test_multivim.robot @@ -0,0 +1,22 @@ +*** settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json + +*** Variables *** +@{return_ok_list}= 200 201 202 +${queryswagger_broker_url} /openoapi/multivim/v1/swagger.json + + +*** Test Cases *** +BrokerSwaggerTest + [Documentation] query swagger info rest test + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${MSB_IP} headers=${headers} + ${resp}= Get Request web_session ${queryswagger_broker_url} + ${responese_code}= Convert To String ${resp.status_code} + List Should Contain Value ${return_ok_list} ${responese_code} + ${response_json} json.loads ${resp.content} + ${swagger_version}= Convert To String ${response_json['swagger']} + Should Be Equal ${swagger_version} 2.0 |