blob: 390433d5c85dfa0668fd899a1625bddff51af940 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** settings ***
2Resource ../../common.robot
3Library Collections
4Library RequestsLibrary
5Library OperatingSystem
6Library json
7Library HttpLibrary.HTTP
8
9
10*** Variables ***
11@{return_ok_list}= 200 201 202
12
13
14*** Test Cases ***
15
16TestGetHost
17 [Documentation] Sanity Test - Get Image
18 ${headers} Create Dictionary Content-Type=application/json Accept=application/json
19 Create Session web_session http://${VIO_IP}:9004 headers=${headers}
20 ${resp}= Get Request web_session api/multicloud-vio/v0/vmware_fake/1234/images/1
21 ${response_code}= Convert To String ${resp.status_code}
22 List Should Contain Value ${return_ok_list} ${response_code}
23 ${response_json} json.loads ${resp.content}
24 #Log To Console ${response_json}