Huang Haibin | 9eb2fab | 2018-08-19 13:46:30 +0800 | [diff] [blame] | 1 | *** settings *** |
| 2 | Library Collections |
| 3 | Library 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 *** |
| 11 | OcataRegistryTest |
| 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} |