Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library OperatingSystem |
| 4 | Library RequestsLibrary |
| 5 | Library json |
| 6 | |
| 7 | *** Test Cases *** |
| 8 | Get Requests health check ok |
| 9 | [Tags] get |
koblosz | 2ac270a | 2018-10-23 07:32:30 +0200 | [diff] [blame] | 10 | CreateSession vid http://${VID_IP}:8080 |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 11 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json |
koblosz | 2ac270a | 2018-10-23 07:32:30 +0200 | [diff] [blame] | 12 | ${resp}= Get Request vid /vid/healthCheck headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 13 | Should Be Equal As Strings ${resp.status_code} 200 |
| 14 | Log to console statusCode: ${resp.json()['statusCode']} |
| 15 | Should Be Equal As Strings ${resp.json()['statusCode']} 200 |