blob: 2b92be7496402ed82387862984a8fc0e3a5a4ab2 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Library Collections
3Library OperatingSystem
4Library RequestsLibrary
5Library json
6
7*** Test Cases ***
8Get Requests health check ok
9 [Tags] get
Petr Ospalýe12a5ef2019-09-11 17:03:03 +020010 CreateSession sdc-fe ${SDC_FE_PROTOCOL}://localhost:${SDC_FE_PORT}
Gary Wu9abb61c2018-09-27 10:38:50 -070011 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
Petr Ospalýe12a5ef2019-09-11 17:03:03 +020012 ${resp}= Get Request sdc-fe /sdc1/rest/healthCheck headers=&{headers}
Gary Wu9abb61c2018-09-27 10:38:50 -070013 Should Be Equal As Strings ${resp.status_code} 200
14 @{ITEMS}= Copy List ${resp.json()['componentsInfo']}
15 : FOR ${ELEMENT} IN @{ITEMS}
16 \ Log ${ELEMENT['healthCheckComponent']} ${ELEMENT['healthCheckStatus']}