DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Validate A&AI Serivce Instance |
| 3 | ... |
| 4 | ... Validate A&AI Serivce Instance |
| 5 | |
| 6 | Resource aai_interface.robot |
| 7 | Library Collections |
| 8 | Library OperatingSystem |
| 9 | Library RequestsLibrary |
| 10 | Library JSONUtils |
| 11 | Library HttpLibrary.HTTP |
| 12 | |
| 13 | Resource ../json_templater.robot |
| 14 | |
| 15 | *** Variables *** |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 16 | ${INDEX PATH} /aai/v11 |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 17 | ${GENERIC_QUERY_PATH} /search/generic-query? |
| 18 | ${SYSTEM USER} robot-ete |
| 19 | ${CUSTOMER SPEC PATH} /business/customers/customer/ |
| 20 | ${SERVICE SUBSCRIPTIONS} /service-subscriptions/service-subscription/ |
| 21 | ${SERVICE INSTANCE} /service-instances?service-instance-name= |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 22 | ${SERVCE INSTANCE TEMPLATE} robot/assets/templates/aai/service_subscription.template |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 23 | |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 24 | *** Keywords *** |
| 25 | Validate Volume Group |
| 26 | [Arguments] ${service_instance_name} ${service_type} ${customer_id} |
DR695H | ccff30b | 2017-02-17 18:44:24 -0500 | [diff] [blame] | 27 | ${resp}= Run A&AI Get Request ${INDEX PATH}${CUSTOMER SPEC PATH}${CUSTOMER ID}${SERVICE SUBSCRIPTIONS}${service_type}${SERVICE INSTANCE}${service_instance_name} |
| 28 | Dictionary Should Contain Value ${resp.json()['service-instance'][0]} ${service_instance_name} |
| 29 | |
Jerry Flood | 8a6b0b5 | 2017-11-12 15:44:21 -0500 | [diff] [blame] | 30 | |