blob: 3783e159effcbb8879187fd86d76ef905f5baa13 [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
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 Shlosberga2d8b3b2017-12-25 16:35:04 +020013 Should Be Equal As Strings ${resp.status_code} 500
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']}