blob: 2ee118063c9b5c3dcb8b3d8628081d794e081c01 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Test Cases ***
8Healthcheck
9 [Documentation] Runs Policy Distribution Health check
10 ${auth}= Create List healthcheck zb!XztG34
ramvermad6e21392019-02-11 14:52:47 +000011 Log Creating session https://${POLICY_DISTRIBUTION_IP}:6969
12 ${session}= Create Session policy https://${POLICY_DISTRIBUTION_IP}:6969 auth=${auth}
Gary Wu9abb61c2018-09-27 10:38:50 -070013 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
14 ${resp}= Get Request policy /healthcheck 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()['code']} 200