aboutsummaryrefslogtreecommitdiffstats
path: root/tests/policy
diff options
context:
space:
mode:
authorBilal A <bilal@research.att.com>2019-04-12 22:38:32 +0000
committerBilal A <bilal@research.att.com>2019-04-15 15:39:20 +0000
commit95097c2a4d7f3ecbc22b01f7aad69736d49beb02 (patch)
tree48dde87fe3f914914d69fe7977de0f221001368b /tests/policy
parent5ab8a07212f71a31da81b9a65f88eeb5c52d7b9b (diff)
DB Connection Setup for API and PAP for CSIT
1) Adds CSIT Test for API 2) Adds a mariadb container setup and configuration for API. 3) Adds a mariadb container setup and configuration for PAP. Change-Id: I9beea4f2445215bc95962ebceb4ec626dd0d5521 Issue-ID: POLICY-1270 Signed-off-by: Bilal A <bilal@research.att.com>
Diffstat (limited to 'tests/policy')
-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
+