DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Validate A&AI Serivce Instance |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 3 | |
| 4 | Resource aai_interface.robot |
| 5 | Library Collections |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 6 | |
| 7 | *** Variables *** |
DR695H | 3bb6cf4 | 2019-06-20 15:04:04 -0400 | [diff] [blame^] | 8 | ${INDEX_PATH} /aai/v11 |
| 9 | ${CUSTOMER_SPEC_PATH} /business/customers/customer/ |
| 10 | ${SERVICE_SUBSCRIPTIONS} /service-subscriptions/service-subscription/ |
| 11 | ${SERVICE_INSTANCE} /service-instances?service-instance-name= |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 12 | |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 13 | *** Keywords *** |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 14 | Validate Network |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 15 | [Documentation] Query and Validates A&AI Service Instance |
| 16 | [Arguments] ${service_instance_name} ${service_type} ${customer_id} |
DR695H | 3bb6cf4 | 2019-06-20 15:04:04 -0400 | [diff] [blame^] | 17 | ${resp}= Run A&AI Get Request ${INDEX_PATH}${CUSTOMER_SPEC_PATH}${customer_id}${SERVICE_SUBSCRIPTIONS}${service_type}${SERVICE_INSTANCE}${service_instance_name} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 18 | Dictionary Should Contain Value ${resp.json()['service-instance'][0]} ${service_instance_name} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 19 | |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 20 | |
| 21 | |
| 22 | *** Keywords *** |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 23 | Create Network |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 24 | [Documentation] Query and Validates A&AI Service Instance |
DR695H | 3bb6cf4 | 2019-06-20 15:04:04 -0400 | [diff] [blame^] | 25 | [Arguments] ${customer_id} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 26 | ${json_string}= Catenate { "service-type": "VDNS" , "service-subscriptions":[{"service-instance-id":"instanceid123","service-instance-name":"VDNS"}]} |
DR695H | 3bb6cf4 | 2019-06-20 15:04:04 -0400 | [diff] [blame^] | 27 | ${put_resp}= Run A&AI Put Request ${INDEX_PATH}${CUSTOMER_SPEC_PATH}${customer_id}${SERVICE_SUBSCRIPTIONS}/VDNS ${json_string} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 28 | Should Be Equal As Strings ${put_resp.status_code} 201 |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 29 | [Return] ${put_resp.status_code} |
| 30 | |