Shashank Kumar Shankar | f8aab84 | 2018-04-20 11:22:55 -0700 | [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-ocata/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} |