blob: f96b542b3d6fbfee4adeed0ab31f8be2c9b49aae [file] [log] [blame]
Huang Haibin9eb2fab2018-08-19 13:46:30 +08001*** settings ***
2Library Collections
3Library RequestsLibrary
4
5*** Variables ***
6@{return_ok_list}= 200 201 202
7${queryregistration_url} /api/multicloud-pike/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}