blob: 3812bb66f4e42f97c10effc772946fa3cceb9346 [file] [log] [blame]
jf986075010a42017-02-22 16:52:54 -05001*** Settings ***
2Documentation Executes the VNF Orchestration Test cases including setup and teardown
DR695H0b4b16c2019-07-24 16:40:42 -04003
4Library ONAPLibrary.SO WITH NAME SO
Jerry Floodbe0fa8e2017-04-21 17:31:05 -04005Library Collections
jf986075010a42017-02-22 16:52:54 -05006Resource ../resources/demo_preload.robot
Brian Freeman8adf0862019-07-12 10:31:24 -05007
jf986075010a42017-02-22 16:52:54 -05008*** Variables ***
9
10${VNF_NAME} DemoVNF
11${MODULE_NAME} DemoModuleName
12
Jerry Flood596db382017-10-27 08:37:37 -040013${HB_STACK}
Jerry Flood596db382017-10-27 08:37:37 -040014${HB_SERVICE}
DR695H910097e2019-05-08 13:55:32 -040015${HB_IPV4_OAM_ADDRESS}
DR695H31480282019-07-12 18:34:15 -040016${TENANT_NAME}
17${VVG_SERVER_ID}
18${SERVICE}
DR695H1ccabd02019-07-15 17:19:12 -040019${CUSTOMER_NAME}
20${SERVICE_INSTANCE_ID}
21${STACK_NAMES}
DR695Hc1103fb2019-07-22 12:37:45 -040022${CATALOG_SERVICE_ID}
23${CATALOG_RESOURCE_IDS}
24${REVERSE_HEATBRIDGE}
DR695H1496bf52019-07-31 16:28:55 -040025${HB_VNF}
Jerry Flood596db382017-10-27 08:37:37 -040026
Brian Freemanf69be7b2020-11-23 15:23:01 -050027${API_TYPE} GRA_API
Brian Freeman7fee2e62019-11-05 15:39:34 -050028
Jerry Flood36267292017-04-17 18:07:47 -040029*** Test Cases ***
jf986075010a42017-02-22 16:52:54 -050030Initialize Customer And Models
Jerry Flood36267292017-04-17 18:07:47 -040031 [Tags] InitDemo
32 Load Customer And Models Demonstration
Brian Freemand1339742019-10-07 11:37:14 -050033 Load Customer SDN-ETHERNET-INTERNET
jf986075010a42017-02-22 16:52:54 -050034
Brian Freeman8adf0862019-07-12 10:31:24 -050035Initialize SO Openstack Identity For V3
36 [Tags] InitDemo
mrichomme3256fa22020-03-09 11:23:35 +010037 ${arguments}= Create Dictionary site_name=${GLOBAL_INJECTED_REGION} region_id=${GLOBAL_INJECTED_REGION} clli=${GLOBAL_INJECTED_REGION} identity_id=DEFAULT_KEYSTONE identity_url=${GLOBAL_INJECTED_KEYSTONE}/${GLOBAL_INJECTED_OPENSTACK_KEYSTONE_API_VERSION} mso_id=${GLOBAL_INJECTED_OPENSTACK_USERNAME} mso_pass=${GLOBAL_INJECTED_OPENSTACK_SO_ENCRYPTED_PASSWORD} admin_tenant=${GLOBAL_INJECTED_OPENSTACK_TENANT_ID} member_role=admin identity_server_type=KEYSTONE_V3 authentication_type=USERNAME_PASSWORD project_domain_name=${GLOBAL_INJECTED_OPENSTACK_DOMAIN_ID} user_domain_name=${GLOBAL_INJECTED_OPENSTACK_USER_DOMAIN}
DR695Hc0cf6a42019-07-26 16:42:36 -040038 ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD}
DR695H0b4b16c2019-07-24 16:40:42 -040039 Run Keyword If '${GLOBAL_INJECTED_OPENSTACK_KEYSTONE_API_VERSION}'=='v3' SO.Upsert Cloud Configuration ${GLOBAL_SO_CATDB_ENDPOINT} ${GLOBAL_SO_CLOUD_CONFIG_PATH} ${GLOBAL_TEMPLATE_FOLDER} ${GLOBAL_SO_CLOUD_CONFIG_TEMPLATE} ${arguments} auth=${auth}
Brian Freeman8adf0862019-07-12 10:31:24 -050040
Brian Freeman026df1b2019-12-05 16:21:20 -050041Initialize vCPE Models
42 [Tags] distributeVCPE
Brian Freeman22ae3362020-09-23 12:12:20 -050043 Load vCPE Models Demonstration
Brian Freeman026df1b2019-12-05 16:21:20 -050044
Jerry Floodbe0fa8e2017-04-21 17:31:05 -040045Initialize Customer
46 [Tags] InitCustomer
47 Load Customer Demonstration
Brian Freemane52bf122018-11-12 11:36:58 -050048 Load Customer SDN-ETHERNET-INTERNET
Jerry Floodbe0fa8e2017-04-21 17:31:05 -040049
50Initialize Models
51 [Tags] InitDistribution
52 Load Models Demonstration
53
jf986075010a42017-02-22 16:52:54 -050054Preload VNF
Jerry Flood36267292017-04-17 18:07:47 -040055 [Tags] PreloadDemo
DR695H1ccabd02019-07-15 17:19:12 -040056 Preload User Model ${VNF_NAME} ${MODULE_NAME} ${SERVICE} ${SERVICE_INSTANCE_ID}
Jerry Flood36267292017-04-17 18:07:47 -040057
Brian Freeman7fee2e62019-11-05 15:39:34 -050058Preload VNF GRA
59 [Tags] PreloadDemoGRA
60 Set Global Variable ${API_TYPE} GRA_API
61 Preload User Model ${VNF_NAME} ${MODULE_NAME} ${SERVICE} ${SERVICE_INSTANCE_ID}
62
jf986075010a42017-02-22 16:52:54 -050063Create APPC Mount Point
Jerry Flood36267292017-04-17 18:07:47 -040064 [Tags] APPCMountPointDemo
65 APPC Mount Point ${MODULE_NAME}
jf986075010a42017-02-22 16:52:54 -050066
Jerry Flood36267292017-04-17 18:07:47 -040067Instantiate VFW
68 [Tags] instantiateVFW
Brian Freemaneea42d42018-10-25 07:41:54 -050069 Instantiate VNF vFW base_vfw
Jerry Flood36267292017-04-17 18:07:47 -040070
Brian Freemancc2623b2018-10-29 09:15:15 -050071Instantiate Demo VFWCL
72 [Tags] instantiateDemoVFWCL
73 Instantiate Demo VNF vFWCL base_vpkg
74
Brian Freemana68b17b2020-05-20 14:51:37 -050075Instantiate Demo VFWCL GRA
76 [Tags] instantiateDemoVFWCLGRA
77 Set Global Variable ${API_TYPE} GRA_API
78 Instantiate Demo VNF vFWCL base_vpkg
79
Brian Freeman6737be52018-07-19 17:07:31 -050080Instantiate VFWCL
81 [Tags] instantiateVFWCL
Brian Freemand65e2aa2018-07-26 11:13:46 -050082 Instantiate VNF vFWCL base_vpkg
Brian Freeman6737be52018-07-19 17:07:31 -050083
Brian Freeman059963c2019-10-24 09:55:40 -050084Instantiate VFWCL GRA
85 [Tags] instantiateVFWCLGRA
86 Set Global Variable ${API_TYPE} GRA_API
87 Instantiate VNF vFWCL base_vpkg
88
Brian Freeman17bab9f2020-04-27 18:27:26 -050089Instantiate VFWCL DANOS
90 [Tags] instantiateVFWCLDN
91 Set Global Variable ${API_TYPE} GRA_API
92 Instantiate VNF vFWCLDN base_vpkg
93
Brian Freeman059963c2019-10-24 09:55:40 -050094Instantiate VLB GRA
95 [Tags] instantiateVLBGRA
96 Set Global Variable ${API_TYPE} GRA_API
97 Instantiate VNF vLB base_vpkg
98
99Instantiate VFWDT GRA
100 [Tags] instantiateVFWDTGRA
101 Set Global Variable ${API_TYPE} GRA_API
102 Instantiate VNF vFWDT base_vpkg
103
104
Brian Freemanee02b312019-02-04 20:36:08 -0500105Instantiate VFWDT
106 [Tags] instantiateVFWDT
107 Instantiate VNF vFWDT base_vpkg
108
Abdelmuhaimen Seaudi94cc7832019-08-14 17:53:15 +0000109Instantiate VLB_CDS
110 [Tags] instantiateVLB_CDS
DR695Hcccad652019-09-16 13:21:47 -0400111 Instantiate VNF CDS vLB_CDS demoVLB_CDS
Brian Freemanca5e32e2018-07-23 12:47:21 -0500112
Jerry Flood36267292017-04-17 18:07:47 -0400113Delete Instantiated VNF
114 [Documentation] This test assumes all necessary variables are loaded via the variable file create in Save For Delete
Jerry Floodbe0fa8e2017-04-21 17:31:05 -0400115 ... The Teardown VNF needs to be in the teardown step of the test case...
Jerry Flood36267292017-04-17 18:07:47 -0400116 [Tags] deleteVNF
117 Setup Browser
118 Login To VID GUI
DR695Hc1103fb2019-07-22 12:37:45 -0400119 Delete VNF ${TENANT_NAME} ${VVG_SERVER_ID} ${CUSTOMER_NAME} ${SERVICE_INSTANCE_ID} ${STACK_NAMES} ${REVERSE_HEATBRIDGE}
120 [Teardown] Teardown VNF ${CUSTOMER_NAME} ${CATALOG_SERVICE_ID} ${CATALOG_RESOURCE_IDS}
Jerry Flood36267292017-04-17 18:07:47 -0400121
Jerry Flood596db382017-10-27 08:37:37 -0400122Run Heatbridge
123 [Documentation]
124 ... Try to run heatbridge
125 [Tags] heatbridge
DR695H1496bf52019-07-31 16:28:55 -0400126 Execute Heatbridge ${HB_STACK} ${HB_VNF} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS}
Jerry Flood596db382017-10-27 08:37:37 -0400127
Aaron Hayc3f081d2018-08-05 13:01:17 -0400128Preload APPC CDT GUI
129 [Documentation]
130 ... APPC CDT Preload Demo
131 [Tags] APPCCDTPreloadDemo
132 Setup Browser
133 Preload APPC CDT GUI
Aaron Hayc3f081d2018-08-05 13:01:17 -0400134
Yang Xu2ec80382018-11-01 12:30:37 -0400135Distribute vFWNG CDS Model
136 [Documentation] Distribute vFWNG for CDS
137 [Tags] DistributeVFWNG
138 [Timeout] 600
139 Model Distribution For Directory service=vFWNG cds=vfwng
140
Brian Freemanee02b312019-02-04 20:36:08 -0500141Distribute Demo vFWDT Model
142 [Documentation] Distribute Demo vFWDT (does not delete model after distribution)
143 [Tags] DistributeDemoVFWDT
144 [Timeout] 600
mrichomme3256fa22020-03-09 11:23:35 +0100145 Model Distribution For Directory service=vFWDT
Brian Freemanee02b312019-02-04 20:36:08 -0500146
Brian Freemand1339742019-10-07 11:37:14 -0500147Download Service CSAR To Robot
148 [Tags] downloadCsar
149 Download CSAR ${CATALOG_SERVICE_ID}