summaryrefslogtreecommitdiffstats
path: root/robot/resources/aai/network.robot
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-06-20 15:04:04 -0400
committerDR695H <dr695h@att.com>2019-06-20 15:04:04 -0400
commit3bb6cf4b938d3e725860606d3ddaa8eecd872151 (patch)
treee03ccb5b30413d9fc7b3cef8c5ef0827d2e641d2 /robot/resources/aai/network.robot
parent3440942ef2c78e1a8eb07c70c1a03b3834beaecf (diff)
replace aai, closeloop, sdc with jinja
Issue-ID: TEST-158 Change-Id: I95a783f26e28512cb4fc98e50931d62001c489c6 Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/aai/network.robot')
-rw-r--r--robot/resources/aai/network.robot24
1 files changed, 7 insertions, 17 deletions
diff --git a/robot/resources/aai/network.robot b/robot/resources/aai/network.robot
index a3fd7737..8229a7e4 100644
--- a/robot/resources/aai/network.robot
+++ b/robot/resources/aai/network.robot
@@ -1,30 +1,20 @@
*** Settings ***
Documentation Validate A&AI Serivce Instance
-...
-... Validate A&AI Serivce Instance
Resource aai_interface.robot
Library Collections
-Library OperatingSystem
-Library RequestsLibrary
-Library ONAPLibrary.JSON
-
-Resource ../json_templater.robot
*** Variables ***
-${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
+${INDEX_PATH} /aai/v11
+${CUSTOMER_SPEC_PATH} /business/customers/customer/
+${SERVICE_SUBSCRIPTIONS} /service-subscriptions/service-subscription/
+${SERVICE_INSTANCE} /service-instances?service-instance-name=
*** Keywords ***
Validate Network
[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}
+ ${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}
@@ -32,9 +22,9 @@ Validate Network
*** Keywords ***
Create Network
[Documentation] Query and Validates A&AI Service Instance
- [Arguments] ${CUSTOMER ID}
+ [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}
+ ${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}