blob: d981accce11da00fbe8f976be5e03944aaee049f [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 Freeman7fee2e62019-11-05 15:39:34 -050027${API_TYPE} VNF_API
28
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
43 Load vCPE Models
44
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 Freeman6737be52018-07-19 17:07:31 -050075Instantiate VFWCL
76 [Tags] instantiateVFWCL
Brian Freemand65e2aa2018-07-26 11:13:46 -050077 Instantiate VNF vFWCL base_vpkg
Brian Freeman6737be52018-07-19 17:07:31 -050078
Brian Freeman059963c2019-10-24 09:55:40 -050079Instantiate VFWCL GRA
80 [Tags] instantiateVFWCLGRA
81 Set Global Variable ${API_TYPE} GRA_API
82 Instantiate VNF vFWCL base_vpkg
83
Brian Freeman17bab9f2020-04-27 18:27:26 -050084Instantiate VFWCL DANOS
85 [Tags] instantiateVFWCLDN
86 Set Global Variable ${API_TYPE} GRA_API
87 Instantiate VNF vFWCLDN base_vpkg
88
Brian Freeman059963c2019-10-24 09:55:40 -050089Instantiate VLB GRA
90 [Tags] instantiateVLBGRA
91 Set Global Variable ${API_TYPE} GRA_API
92 Instantiate VNF vLB base_vpkg
93
94Instantiate VFWDT GRA
95 [Tags] instantiateVFWDTGRA
96 Set Global Variable ${API_TYPE} GRA_API
97 Instantiate VNF vFWDT base_vpkg
98
99
Brian Freemanee02b312019-02-04 20:36:08 -0500100Instantiate VFWDT
101 [Tags] instantiateVFWDT
102 Instantiate VNF vFWDT base_vpkg
103
Abdelmuhaimen Seaudi94cc7832019-08-14 17:53:15 +0000104Instantiate VLB_CDS
105 [Tags] instantiateVLB_CDS
DR695Hcccad652019-09-16 13:21:47 -0400106 Instantiate VNF CDS vLB_CDS demoVLB_CDS
Brian Freemanca5e32e2018-07-23 12:47:21 -0500107
Jerry Flood36267292017-04-17 18:07:47 -0400108Delete Instantiated VNF
109 [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 -0400110 ... The Teardown VNF needs to be in the teardown step of the test case...
Jerry Flood36267292017-04-17 18:07:47 -0400111 [Tags] deleteVNF
112 Setup Browser
113 Login To VID GUI
DR695Hc1103fb2019-07-22 12:37:45 -0400114 Delete VNF ${TENANT_NAME} ${VVG_SERVER_ID} ${CUSTOMER_NAME} ${SERVICE_INSTANCE_ID} ${STACK_NAMES} ${REVERSE_HEATBRIDGE}
115 [Teardown] Teardown VNF ${CUSTOMER_NAME} ${CATALOG_SERVICE_ID} ${CATALOG_RESOURCE_IDS}
Jerry Flood36267292017-04-17 18:07:47 -0400116
Jerry Flood596db382017-10-27 08:37:37 -0400117Run Heatbridge
118 [Documentation]
119 ... Try to run heatbridge
120 [Tags] heatbridge
DR695H1496bf52019-07-31 16:28:55 -0400121 Execute Heatbridge ${HB_STACK} ${HB_VNF} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS}
Jerry Flood596db382017-10-27 08:37:37 -0400122
Aaron Hayc3f081d2018-08-05 13:01:17 -0400123Preload APPC CDT GUI
124 [Documentation]
125 ... APPC CDT Preload Demo
126 [Tags] APPCCDTPreloadDemo
127 Setup Browser
128 Preload APPC CDT GUI
Aaron Hayc3f081d2018-08-05 13:01:17 -0400129
Yang Xu2ec80382018-11-01 12:30:37 -0400130Distribute vFWNG CDS Model
131 [Documentation] Distribute vFWNG for CDS
132 [Tags] DistributeVFWNG
133 [Timeout] 600
134 Model Distribution For Directory service=vFWNG cds=vfwng
135
Brian Freemanee02b312019-02-04 20:36:08 -0500136Distribute Demo vFWDT Model
137 [Documentation] Distribute Demo vFWDT (does not delete model after distribution)
138 [Tags] DistributeDemoVFWDT
139 [Timeout] 600
mrichomme3256fa22020-03-09 11:23:35 +0100140 Model Distribution For Directory service=vFWDT
Brian Freemanee02b312019-02-04 20:36:08 -0500141
Brian Freemand1339742019-10-07 11:37:14 -0500142Download Service CSAR To Robot
143 [Tags] downloadCsar
144 Download CSAR ${CATALOG_SERVICE_ID}