blob: 6d4dc242d8888fa9838c4a1601b909423960ad23 [file] [log] [blame]
Yuli Shlosberg939bee02017-09-20 12:00:32 +03001*** Settings ***
2Library Collections
3Library OperatingSystem
4Library RequestsLibrary
5Library json
6
7*** Test Cases ***
8Get Requests health check ok
9 [Tags] get
10 CreateSession sdc-be http://localhost:8080
11 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
12 ${resp}= Get Request sdc-be /sdc2/rest/healthCheck headers=&{headers}
Yuli Shlosbergaedcf8e2018-04-19 01:45:21 +030013 Should Be Equal As Strings ${resp.status_code} 200
Yuli Shlosberg939bee02017-09-20 12:00:32 +030014 @{ITEMS}= Copy List ${resp.json()['componentsInfo']}
15 : FOR ${ELEMENT} IN @{ITEMS}
16 \ Log ${ELEMENT['healthCheckComponent']} ${ELEMENT['healthCheckStatus']}