From 43867308f06e922590ab597e414e416c407aa4aa Mon Sep 17 00:00:00 2001 From: luxin Date: Fri, 22 Sep 2017 16:27:09 +0800 Subject: Add CSIT for vfc-resmanagement Change-Id: I3faacad9d00c7242312bb8fe7cad5046c25b55a6 Issue-Id:VFC-424 Signed-off-by: luxin --- test/csit/tests/vfc/nfvo-resmanagement/test.robot | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/csit/tests') 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 -- cgit 1.2.3-korg