diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-09-22 14:51:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-22 14:51:42 +0000 |
commit | cea3c28d5cd438c872db8b4e083726ac94f548d3 (patch) | |
tree | 930032ed463cb0df20a72a31962d978b78a68262 /test | |
parent | 19c8bde507b1d0bb92d7c9ba632a578aa5cca7b7 (diff) | |
parent | 43867308f06e922590ab597e414e416c407aa4aa (diff) |
Merge "Add CSIT for vfc-resmanagement"
Diffstat (limited to 'test')
-rw-r--r-- | test/csit/tests/vfc/nfvo-resmanagement/test.robot | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/csit/tests/vfc/nfvo-resmanagement/test.robot b/test/csit/tests/vfc/nfvo-resmanagement/test.robot index 996cf5845..526fb304e 100644 --- a/test/csit/tests/vfc/nfvo-resmanagement/test.robot +++ b/test/csit/tests/vfc/nfvo-resmanagement/test.robot @@ -13,4 +13,11 @@ ${queryswagger_url} /api/resmgr/v1/swagger.json *** Test Cases *** SwaggerFuncTest [Documentation] query swagger info rest test - Should Be Equal 2.0 2.0 + ${headers} Create Dictionary Content-Type=application/json Accept=application/json + Create Session web_session http://${RESMGR_IP}:8480 headers=${headers} + ${resp}= Get Request web_session ${queryswagger_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 |