blob: 6567b51e6e14bf772a13183b656a76d72456ca73 [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']}
matthew-mcneillyde929b32021-05-12 14:54:27 +010015 FOR ${ELEMENT} IN @{ITEMS}
16 Log ${ELEMENT['healthCheckComponent']} ${ELEMENT['healthCheckStatus']}
17 END