blob: 4f1aabd33a97a772c7541dc888a173fd17ee8d8b [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
koblosz2ac270a2018-10-23 07:32:30 +020010 CreateSession vid http://${VID_IP}:8080
Gary Wu9abb61c2018-09-27 10:38:50 -070011 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
koblosz2ac270a2018-10-23 07:32:30 +020012 ${resp}= Get Request vid /vid/healthCheck headers=${headers}
Gary Wu9abb61c2018-09-27 10:38:50 -070013 Should Be Equal As Strings ${resp.status_code} 200
14 Log to console statusCode: ${resp.json()['statusCode']}
15 Should Be Equal As Strings ${resp.json()['statusCode']} 200