aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/policy/api/api-test.robot12
-rw-r--r--tests/vfc/gvnfm-vnflcm/test.robot11
2 files changed, 21 insertions, 2 deletions
diff --git a/tests/policy/api/api-test.robot b/tests/policy/api/api-test.robot
index bf2c12b7..d90dabcd 100644
--- a/tests/policy/api/api-test.robot
+++ b/tests/policy/api/api-test.robot
@@ -26,3 +26,15 @@ Statistics
Log Received response from policy ${resp.text}
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.json()['code']} 200
+
+RetrievePolicyTypes
+ [Documentation] Gets Policy Types
+ ${auth}= Create List healthcheck zb!XztG34
+ Log Creating session https://${POLICY_API_IP}:6969
+ ${session}= Create Session policy https://${POLICY_API_IP}:6969 auth=${auth}
+ ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
+ ${resp}= Get Request policy /policy/api/v1/policytypes headers=${headers}
+ Log Received response from policy ${resp.text}
+ Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.json()['version']} 1.0.0
+
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}