summaryrefslogtreecommitdiffstats
path: root/robot/resources/aai/network.robot
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-11-12 15:44:21 -0500
committerJerry Flood <jf9860@att.com>2017-11-12 15:51:49 -0500
commit8a6b0b5aeab216617ff95757709afcb94952ffd6 (patch)
tree62f94e692686bb0b2cd28504483fe97bc3e31960 /robot/resources/aai/network.robot
parent56d962fc11dc14c1f8f4232a6672536bd3bcc1b8 (diff)
Update A&AI api to v11 and create complex
Issue: TEST-34 Change-Id: Ibac7f78390f517e3d3876ec0adff97d1136b2f28 Signed-off-by: Jerry Flood <jf9860@att.com>
Diffstat (limited to 'robot/resources/aai/network.robot')
-rw-r--r--robot/resources/aai/network.robot25
1 files changed, 12 insertions, 13 deletions
diff --git a/robot/resources/aai/network.robot b/robot/resources/aai/network.robot
index a42461e2..6bda4e27 100644
--- a/robot/resources/aai/network.robot
+++ b/robot/resources/aai/network.robot
@@ -13,30 +13,29 @@ Library HttpLibrary.HTTP
Resource ../json_templater.robot
*** Variables ***
-${INDEX PATH} /aai/v8
+${INDEX PATH} /aai/v11
${GENERIC_QUERY_PATH} /search/generic-query?
${SYSTEM USER} robot-ete
${CUSTOMER SPEC PATH} /business/customers/customer/
${SERVICE SUBSCRIPTIONS} /service-subscriptions/service-subscription/
${SERVICE INSTANCE} /service-instances?service-instance-name=
-${SERVCE INSTANCE TEMPLATE} robot/assets/templates/aai/service_subscription.template
+${SERVCE INSTANCE TEMPLATE} robot/assets/templates/aai/service_subscription.template
-*** Keywords ***
+*** Keywords ***
Validate Network
- [Documentation] Query and Validates A&AI Service Instance
- [Arguments] ${service_instance_name} ${service_type} ${customer_id}
+ [Documentation] Query and Validates A&AI Service Instance
+ [Arguments] ${service_instance_name} ${service_type} ${customer_id}
${resp}= Run A&AI Get Request ${INDEX PATH}${CUSTOMER SPEC PATH}${CUSTOMER ID}${SERVICE SUBSCRIPTIONS}${service_type}${SERVICE INSTANCE}${service_instance_name}
Dictionary Should Contain Value ${resp.json()['service-instance'][0]} ${service_instance_name}
-
-
-*** Keywords ***
+
+
+*** Keywords ***
Create Network
- [Documentation] Query and Validates A&AI Service Instance
- [Arguments] ${CUSTOMER ID}
+ [Documentation] Query and Validates A&AI Service Instance
+ [Arguments] ${CUSTOMER ID}
${json_string}= Catenate { "service-type": "VDNS" , "service-subscriptions":[{"service-instance-id":"instanceid123","service-instance-name":"VDNS"}]}
${put_resp}= Run A&AI Put Request ${INDEX PATH}${CUSTOMER SPEC PATH}${CUSTOMER ID}${SERVICE SUBSCRIPTIONS}/VDNS ${json_string}
Should Be Equal As Strings ${put_resp.status_code} 201
- [Return] ${put_resp.status_code}
-
- \ No newline at end of file
+ [Return] ${put_resp.status_code}
+