blob: 3705d8f5bbac085a53be7113d7e340ead88f6c83 [file] [log] [blame]
Yuli Shlosberg02d7f732017-10-25 18:56:08 +03001*** Settings ***
2Library Collections
3Library OperatingSystem
4Library RequestsLibrary
5Library json
6
7*** Test Cases ***
8Get Requests health check ok
9 [Tags] get
Yulie28e24b2018-08-07 11:50:30 +030010 CreateSession sdc-be http://localhost:8181
Yuli Shlosberg02d7f732017-10-25 18:56:08 +030011 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
Yulie28e24b2018-08-07 11:50:30 +030012 ${resp}= Get Request sdc-be /sdc1/rest/healthCheck headers=&{headers}
Yuli Shlosbergaedcf8e2018-04-19 01:45:21 +030013 Should Be Equal As Strings ${resp.status_code} 200
Yuli Shlosberg02d7f732017-10-25 18:56:08 +030014 @{ITEMS}= Copy List ${resp.json()['componentsInfo']}
15 : FOR ${ELEMENT} IN @{ITEMS}
16 \ Log ${ELEMENT['healthCheckComponent']} ${ELEMENT['healthCheckStatus']}