replcaing jsonutils with onaplib.json
[testsuite.git] / robot / resources / aai / volume_group.robot
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    ONAPLibrary.JSON
11
12 Resource          ../json_templater.robot
13
14 *** Variables ***
15 ${INDEX PATH}     /aai/v11
16 ${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=
21 ${SERVCE INSTANCE TEMPLATE}    robot/assets/templates/aai/service_subscription.template
22
23 *** Keywords ***
24 Validate Volume Group
25     [Arguments]    ${service_instance_name}    ${service_type}  ${customer_id}
26         ${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
29