blob: 94ad3b7bf586226938986f4fe972e3c8d1f74730 [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001*** Settings ***
2Documentation Validate A&AI Serivce Instance
3...
4... Validate A&AI Serivce Instance
5
6Resource aai_interface.robot
7Library Collections
8Library OperatingSystem
9Library RequestsLibrary
DR695H7aca1a42019-06-03 17:08:34 -040010Library ONAPLibrary.JSON
DR695Hccff30b2017-02-17 18:44:24 -050011
12Resource ../json_templater.robot
13
14*** Variables ***
Jerry Flood8a6b0b52017-11-12 15:44:21 -050015${INDEX PATH} /aai/v11
DR695Hccff30b2017-02-17 18:44:24 -050016${GENERIC_QUERY_PATH} /search/generic-query?
17${SYSTEM USER} robot-ete
18${CUSTOMER SPEC PATH} /business/customers/customer/
19${SERVICE SUBSCRIPTIONS} /service-subscriptions/service-subscription/
20${SERVICE INSTANCE} /service-instances?service-instance-name=
Jerry Flood8a6b0b52017-11-12 15:44:21 -050021${SERVCE INSTANCE TEMPLATE} robot/assets/templates/aai/service_subscription.template
DR695Hccff30b2017-02-17 18:44:24 -050022
Jerry Flood8a6b0b52017-11-12 15:44:21 -050023*** Keywords ***
24Validate Volume Group
25 [Arguments] ${service_instance_name} ${service_type} ${customer_id}
DR695Hccff30b2017-02-17 18:44:24 -050026 ${resp}= Run A&AI Get Request ${INDEX PATH}${CUSTOMER SPEC PATH}${CUSTOMER ID}${SERVICE SUBSCRIPTIONS}${service_type}${SERVICE INSTANCE}${service_instance_name}
27 Dictionary Should Contain Value ${resp.json()['service-instance'][0]} ${service_instance_name}
28
Jerry Flood8a6b0b52017-11-12 15:44:21 -050029