summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-09-22 14:51:42 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-22 14:51:42 +0000
commitcea3c28d5cd438c872db8b4e083726ac94f548d3 (patch)
tree930032ed463cb0df20a72a31962d978b78a68262
parent19c8bde507b1d0bb92d7c9ba632a578aa5cca7b7 (diff)
parent43867308f06e922590ab597e414e416c407aa4aa (diff)
Merge "Add CSIT for vfc-resmanagement"
-rw-r--r--test/csit/tests/vfc/nfvo-resmanagement/test.robot9
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