diff options
Diffstat (limited to 'tests/policy/api')
-rw-r--r-- | tests/policy/api/api-test.robot | 12 |
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 + |