2 Documentation AAI CSIT-style regression tests for BBS - new schema elements introduced in Dublin release for BBS use case
4 Resource ${EXECDIR}/robot/resources/aai/csit-customer.robot
5 Resource ${EXECDIR}/robot/resources/aai/csit-service-subscription.robot
6 Resource ${EXECDIR}/robot/resources/aai/csit-service-instance.robot
7 Resource ${EXECDIR}/robot/resources/aai/csit-metadatum.robot
8 Resource ${EXECDIR}/robot/resources/aai/csit-generic-vnf.robot
9 Resource ${EXECDIR}/robot/resources/aai/csit-pnf.robot
12 ${global_customer_id}= robot-customer-test-1
13 ${subscriber_name}= robot-subscriber-name-1
14 ${subscriber_type}= robot-subscriber-type-1
15 ${service_type}= robot-service-type-1
16 ${service_instance_id}= robot-service-instance-1
17 ${metaname1}= robot-metaname-1
18 ${metaval1}= robot-metaval-1
19 ${metaname2}= robot-metaname-2
20 ${metaval2}= robot-metaval-2
21 ${vnf_id}= robot-gvnf-test-1
22 ${vnf_type}= robot-gvnf-type-1
23 ${pnf_name}= robot-pnf-name-1
24 ${pnf_id}= robot-pnf-id-1
28 [Tags] aai csit bbs customer csit_aai_bbs_customer
29 Confirm API Not Implemented Customer ${global_customer_id}
31 Confirm No Customer ${global_customer_id}
32 Create Customer If Not Exists ${global_customer_id} ${subscriber_name} ${subscriber_type}
33 ${get_resp}= Get Customer ${global_customer_id}
34 ${nodes_resp}= Get Nodes Query Customer ${global_customer_id}
35 [Teardown] Run Keywords Delete Customer If Exists ${global_customer_id} AND Confirm No Customer ${global_customer_id}
37 Service Subscription test case
38 [Tags] aai csit bbs service-subscription csit_aai_bbs_service-subscription
39 [Setup] Create Customer If Not Exists ${global_customer_id} ${subscriber_name} ${subscriber_type}
40 ${customer_url}= Get Valid Customer URL ${global_customer_id}
41 Confirm API Not Implemented Service Subscription ${service_type}
42 Get Example Service Subscription
43 Confirm No Service Subscription ${customer_url} ${service_type}
44 Create Service Subscription If Not Exists ${customer_url} ${service_type}
45 ${get_resp}= Get Service Subscription ${customer_url} ${service_type}
46 ${nodes_resp}= Get Nodes Query Service Subscription ${service_type}
47 ${depth_resp}= Get Object With Depth ${customer_url}
48 ${depth_resp_txt}= Catenate ${depth_resp}
49 Should Match Regexp ${depth_resp_txt} ${service_type}
50 [Teardown] Run Keywords Delete Service Subscription If Exists ${customer_url} ${service_type} AND Confirm No Service Subscription ${customer_url} ${service_type} AND Delete Customer If Exists ${global_customer_id} AND Confirm No Customer ${global_customer_id}
52 Service Instance test case
53 [Tags] aai csit bbs service-instance csit_aai_bbs_service-instance
54 [Setup] Create Customer If Not Exists ${global_customer_id} ${subscriber_name} ${subscriber_type}
55 ${customer_url}= Get Valid Customer URL ${global_customer_id}
56 Create Service Subscription If Not Exists ${customer_url} ${service_type}
57 ${subscription_url}= Get Valid Service Subscription URL ${customer_url} ${service_type}
58 Confirm API Not Implemented Service Instance ${service_instance_id}
59 Get Example Service Instance
60 Confirm No Service Instance ${subscription_url} ${service_instance_id}
61 Create Service Instance If Not Exists ${subscription_url} ${service_instance_id}
62 ${get_resp}= Get Service Instance ${subscription_url} ${service_instance_id}
63 ${nodes_resp}= Get Nodes Query Service Instance ${service_instance_id}
64 ${depth_resp}= Get Object With Depth ${subscription_url}
65 ${depth_resp_txt}= Catenate ${depth_resp}
66 Should Match Regexp ${depth_resp_txt} ${service_instance_id}
67 [Teardown] Run Keywords Delete Service Instance If Exists ${subscription_url} ${service_instance_id} AND Confirm No Service Instance ${subscription_url} ${service_instance_id} AND Delete Customer If Exists ${global_customer_id} AND Confirm No Customer ${global_customer_id}
70 [Tags] aai csit bbs metadatum csit_aai_bbs_metadatum
71 [Setup] Create Customer If Not Exists ${global_customer_id} ${subscriber_name} ${subscriber_type}
72 ${customer_url}= Get Valid Customer URL ${global_customer_id}
73 Create Service Subscription If Not Exists ${customer_url} ${service_type}
74 ${subscription_url}= Get Valid Service Subscription URL ${customer_url} ${service_type}
75 Create Service Instance If Not Exists ${subscription_url} ${service_instance_id}
76 ${sintance_url}= Get Valid Service Instance URL ${subscription_url} ${service_instance_id}
77 Confirm API Not Implemented Metadatum ${metaname1}
79 Confirm No Metadatum ${sintance_url} ${metaname1}
80 Create Metadatum If Not Exists ${sintance_url} ${metaname1} ${metaval1}
81 ${get_resp1}= Get Metadatum ${sintance_url} ${metaname1}
82 ${nodes_resp1}= Get Nodes Query Metadatum ${metaname1}
83 Create Metadatum If Not Exists ${sintance_url} ${metaname2} ${metaval2}
84 ${get_resp2}= Get Metadatum ${sintance_url} ${metaname2}
85 ${nodes_resp2}= Get Nodes Query Metadatum ${metaname2}
86 ${depth_resp}= Get Object With Depth ${sintance_url}
87 ${depth_resp_txt}= Catenate ${depth_resp}
88 Should Match Regexp ${depth_resp_txt} ${metaname1}
89 Should Match Regexp ${depth_resp_txt} ${metaval1}
90 Should Match Regexp ${depth_resp_txt} ${metaname2}
91 Should Match Regexp ${depth_resp_txt} ${metaval2}
92 [Teardown] Run Keywords Delete Metadatum If Exists ${sintance_url} ${metaname1} AND Confirm No Metadatum ${sintance_url} ${metaname1} AND Delete Customer If Exists ${global_customer_id} AND Confirm No Customer ${global_customer_id}
95 [Tags] aai csit bbs generic-vnf csit_aai_bbs_generic-vnf
96 Confirm API Not Implemented GenericVnf ${vnf_id}
97 Get Example GenericVnf
98 Confirm No GenericVnf ${vnf_id}
99 Create GenericVnf If Not Exists ${vnf_id} ${vnf_type}
100 ${get_resp}= Get GenericVnf ${vnf_id}
101 ${nodes_resp}= Get Nodes Query GenericVnf ${vnf_id}
102 [Teardown] Run Keywords Delete GenericVnf If Exists ${vnf_id} AND Confirm No GenericVnf ${vnf_id}
105 [Tags] aai csit bbs pnf csit_aai_bbs_pnf
106 Confirm API Not Implemented Pnf ${pnf_name}
108 Confirm No Pnf ${pnf_name}
109 Create Pnf If Not Exists ${pnf_name} ${pnf_id}
110 ${get_resp}= Get Pnf ${pnf_name}
111 ${nodes_resp}= Get Nodes Query Pnf ${pnf_name}
112 [Teardown] Run Keywords Delete Pnf If Exists ${pnf_name} AND Confirm No Pnf ${pnf_name}
114 All Teardowns test case
115 [Tags] teardowns csit_aai_bbs_teardowns
116 Delete Customer If Exists ${global_customer_id}
117 Delete GenericVnf If Exists ${vnf_id}
118 Delete Pnf If Exists ${pnf_name}
119 Confirm No Customer ${global_customer_id}
120 Confirm No GenericVnf ${vnf_id}
121 Confirm No Pnf ${pnf_name}