2 Resource ../../common.robot
4 Library RequestsLibrary
5 Library OperatingSystem
7 Library HttpLibrary.HTTP
11 @{return_ok_list}= 200 201 202
17 [Documentation] Sanity Test - Get Network
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/networks/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}