Add csit case for nslcm 77/85677/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 18 Apr 2019 11:29:04 +0000 (19:29 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 18 Apr 2019 11:29:04 +0000 (19:29 +0800)
Change-Id: Ia9bd66419d0e8cf9e54894e5bc9fea40ab07d4aa
Issue-ID: INT-1015
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
tests/vfc/nfvo-lcm/test.robot

index 6711cf6..833e24b 100644 (file)
@@ -11,6 +11,7 @@ Library     HttpLibrary.HTTP
 ${queryswagger_url}    /api/nslcm/v1/swagger.json
 ${create_ns_url}       /api/nslcm/v1/ns
 ${delete_ns_url}       /api/nslcm/v1/ns
+${get_ns_url}          /api/nslcm/v1/ns
 ${healthcheck_url}     /api/nslcm/v1/health_check
 
 #json files
@@ -74,3 +75,11 @@ LcmHealthCheckTest
     ${response_json}    json.loads    ${resp.content}
     ${health_status}=    Convert To String      ${response_json['status']}
     Should Be Equal    ${health_status}    active
+
+LcmGetNsTest
+    [Documentation]    get ns instances for nslcm by MSB
+    ${headers}    Create Dictionary    Content-Type=application/json    Accept=application/json
+    Create Session    web_session    http://${MSB_IAG_IP}:80    headers=${headers}
+    ${resp}=  Get Request    web_session    ${get_ns_url}
+    ${responese_code}=     Convert To String      ${resp.status_code}
+    List Should Contain Value    ${return_ok_list}   ${responese_code}