diff options
author | luxin <luxin7@huawei.com> | 2017-09-22 16:27:09 +0800 |
---|---|---|
committer | luxin <luxin7@huawei.com> | 2017-09-22 16:27:09 +0800 |
commit | 43867308f06e922590ab597e414e416c407aa4aa (patch) | |
tree | b5c9423b450552653cab6d866b8432a91fdd1318 /test/csit/tests/vfc/nfvo-resmanagement | |
parent | 8e0ec2e5b586c89563014203858f50a664453734 (diff) |
Add CSIT for vfc-resmanagement
Change-Id: I3faacad9d00c7242312bb8fe7cad5046c25b55a6
Issue-Id:VFC-424
Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'test/csit/tests/vfc/nfvo-resmanagement')
-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 |