aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-16 08:37:35 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-16 08:37:35 +0800
commit329de3e8b964a3736ebae26c1be7007a483c73dd (patch)
treede47b22530b1b97e24d70c29fb77ef9c79379eee
parentfb17bcfe684ca3dd0995b801ca21f9de4d8b6d8b (diff)
Add csit cases for vnflcm
Change-Id: If151b01af00d35f58bfddf0023982d613046ed3e Issue-ID: INT-1015 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--tests/vfc/gvnfm-vnflcm/test.robot11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/vfc/gvnfm-vnflcm/test.robot b/tests/vfc/gvnfm-vnflcm/test.robot
index 97463ac1..c2c6a9c0 100644
--- a/tests/vfc/gvnfm-vnflcm/test.robot
+++ b/tests/vfc/gvnfm-vnflcm/test.robot
@@ -9,8 +9,7 @@ Library HttpLibrary.HTTP
*** Variables ***
@{return_ok_list}= 200 201 202 204
${queryswagger_url} /api/vnflcm/v1/swagger.json
-${create_vnf_url} /api/vnflcm/v1/vnf_instances
-${delete_vnf_url} /api/vnflcm/v1/vnf_instances
+${query_vnfs_url} /api/vnflcm/v1/vnf_instances
${healthcheck_url} /api/vnflcm/v1/health_check
#json files
@@ -41,3 +40,11 @@ VnflcmHealthCheckTest
${response_json} json.loads ${resp.content}
${health_status}= Convert To String ${response_json['status']}
Should Be Equal ${health_status} active
+
+VnflcmQueryVnfsTest
+ [Documentation] check health for vnflcm by MSB
+ ${headers} Create Dictionary Content-Type=application/json Accept=application/json
+ Create Session web_session http://${VNFLCM_IP}:8801 headers=${headers}
+ ${resp}= Get Request web_session ${query_vnfs_url}
+ ${responese_code}= Convert To String ${resp.status_code}
+ List Should Contain Value ${return_ok_list} ${responese_code}