aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2019-04-15 16:11:11 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-15 16:11:11 +0000
commitfb17bcfe684ca3dd0995b801ca21f9de4d8b6d8b (patch)
tree7355a74f9ce240def885aa213446805d4b2fb6ce /tests
parent5124ab5b8dad3dff35da2ceec74ca0e2645117e6 (diff)
parent95097c2a4d7f3ecbc22b01f7aad69736d49beb02 (diff)
Merge "DB Connection Setup for API and PAP for CSIT"
Diffstat (limited to 'tests')
-rw-r--r--tests/policy/api/api-test.robot12
1 files changed, 12 insertions, 0 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
+