diff options
author | Yang Xu <yang.xu3@huawei.com> | 2019-04-19 14:13:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-19 14:13:54 +0000 |
commit | 2d3f0db728f0e4c24e4a5461edea4a4ffa97d97b (patch) | |
tree | ddda596c0a7c17d49cbe5e0bb92016af526dd717 /tests/policy/drools-applications/drools-applications-test.robot | |
parent | d5a328362ad6e1ff2160d16d100a0b05960bc4e4 (diff) | |
parent | 3f9a0960ae775678d1e1d4b598b593b59146cb0f (diff) |
Merge "Finish drools CSIT infra"
Diffstat (limited to 'tests/policy/drools-applications/drools-applications-test.robot')
-rw-r--r-- | tests/policy/drools-applications/drools-applications-test.robot | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot new file mode 100644 index 00000000..cf4d3cea --- /dev/null +++ b/tests/policy/drools-applications/drools-applications-test.robot @@ -0,0 +1,17 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json + +*** Test Cases *** +Alive + [Documentation] Runs Policy PDP Alive Check + ${auth}= Create List demo@people.osaaf.org demo123456! + Log Creating session https://${POLICY_DROOLS_IP}:9696 + ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /policy/pdp/engine 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()['alive']} True |