mmis | 79ef939 | 2018-09-22 22:08:56 +0100 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library RequestsLibrary |
| 4 | Library OperatingSystem |
| 5 | Library json |
| 6 | |
| 7 | *** Test Cases *** |
| 8 | Healthcheck |
| 9 | [Documentation] Runs Policy Distribution Health check |
| 10 | ${auth}= Create List healthcheck zb!XztG34 |
| 11 | Log Creating session http://${POLICY_DISTRIBUTION_IP}:6969 |
| 12 | ${session}= Create Session policy http://${POLICY_DISTRIBUTION_IP}:6969 auth=${auth} |
| 13 | ${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 |