blob: cf4d3ceac87dde285d997a3885ebb49bc4f16cb9 [file] [log] [blame]
Taka Cho396ec5a2021-02-26 11:02:51 -05001*** Settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Test Cases ***
8Alive
9 [Documentation] Runs Policy PDP Alive Check
10 ${auth}= Create List demo@people.osaaf.org demo123456!
11 Log Creating session https://${POLICY_DROOLS_IP}:9696
12 ${session}= Create Session policy https://${POLICY_DROOLS_IP}:9696 auth=${auth}
13 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
14 ${resp}= Get Request policy /policy/pdp/engine headers=${headers}
15 Log Received response from policy ${resp.text}
16 Should Be Equal As Strings ${resp.status_code} 200
17 Should Be Equal As Strings ${resp.json()['alive']} True