diff options
author | DR695H <dr695h@att.com> | 2017-02-17 18:44:24 -0500 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2017-02-17 18:44:41 -0500 |
commit | ccff30b6e325f359879595998e83bbfe6624c851 (patch) | |
tree | c98f950f33baa71d21b091b6b10ca3ffb7700467 /robot/resources/aai/network.robot | |
parent | 234c2226d8cb3368a7af3d280a5ec280782bed63 (diff) |
Initial checkin of EopenECOMP testsuite
Change-Id: I64a2b6d8cf66169829866b73b3d26a4ff59b0a42
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/aai/network.robot')
-rw-r--r-- | robot/resources/aai/network.robot | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/robot/resources/aai/network.robot b/robot/resources/aai/network.robot new file mode 100644 index 00000000..a42461e2 --- /dev/null +++ b/robot/resources/aai/network.robot @@ -0,0 +1,42 @@ +*** Settings *** +Documentation Validate A&AI Serivce Instance +... +... Validate A&AI Serivce Instance + +Resource aai_interface.robot +Library Collections +Library OperatingSystem +Library RequestsLibrary +Library JSONUtils +Library HttpLibrary.HTTP + +Resource ../json_templater.robot + +*** Variables *** +${INDEX PATH} /aai/v8 +${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 + +*** 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} + Dictionary Should Contain Value ${resp.json()['service-instance'][0]} ${service_instance_name} + + + +*** Keywords *** +Create Network + [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 |