blob: 95d4d5540d7c5dd9ee1d7c3d6a4b00873ecdd05b [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** settings ***
2Library Collections
3Library RequestsLibrary
4
5*** Variables ***
6@{return_ok_list}= 200 201 202
7${queryregistration_url} /api/multicloud-ocata/v0/CloudOwner_RegionOne/registry
8
9
10*** Test Cases ***
11OcataRegistryTest
12 [Documentation] Register openstack cloud resources
13 ${headers} Create Dictionary Content-Type=application/json Accept=application/json
14 Create Session web_session http://${SERVICE_IP}:${SERVICE_PORT} headers=${headers}
15 ${resp}= Post Request web_session ${queryregistration_url}
16 ${response_code}= Convert To String ${resp.status_code}
17 List Should Contain Value ${return_ok_list} ${response_code}