Yuli Shlosberg | 02d7f73 | 2017-10-25 18:56:08 +0300 | [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 |
Yuli | e28e24b | 2018-08-07 11:50:30 +0300 | [diff] [blame] | 10 | CreateSession sdc-be http://localhost:8181 |
Yuli Shlosberg | 02d7f73 | 2017-10-25 18:56:08 +0300 | [diff] [blame] | 11 | ${headers}= Create Dictionary Accept=application/json Content-Type=application/json |
Yuli | e28e24b | 2018-08-07 11:50:30 +0300 | [diff] [blame] | 12 | ${resp}= Get Request sdc-be /sdc1/rest/healthCheck headers=&{headers} |
Yuli Shlosberg | aedcf8e | 2018-04-19 01:45:21 +0300 | [diff] [blame] | 13 | Should Be Equal As Strings ${resp.status_code} 200 |
Yuli Shlosberg | 02d7f73 | 2017-10-25 18:56:08 +0300 | [diff] [blame] | 14 | @{ITEMS}= Copy List ${resp.json()['componentsInfo']} |
| 15 | : FOR ${ELEMENT} IN @{ITEMS} |
| 16 | \ Log ${ELEMENT['healthCheckComponent']} ${ELEMENT['healthCheckStatus']} |