blob: 9b87001517cf44c5a9374f0f4192485d38f3c00d [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
DR695H0b4b16c2019-07-24 16:40:42 -040037 ${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
84Instantiate VLB GRA
85 [Tags] instantiateVLBGRA
86 Set Global Variable ${API_TYPE} GRA_API
87 Instantiate VNF vLB base_vpkg
88
89Instantiate VFWDT GRA
90 [Tags] instantiateVFWDTGRA
91 Set Global Variable ${API_TYPE} GRA_API
92 Instantiate VNF vFWDT base_vpkg
93
94
Brian Freemanee02b312019-02-04 20:36:08 -050095Instantiate VFWDT
96 [Tags] instantiateVFWDT
97 Instantiate VNF vFWDT base_vpkg
98
Abdelmuhaimen Seaudi94cc7832019-08-14 17:53:15 +000099Instantiate VLB_CDS
100 [Tags] instantiateVLB_CDS
DR695Hcccad652019-09-16 13:21:47 -0400101 Instantiate VNF CDS vLB_CDS demoVLB_CDS
Brian Freemanca5e32e2018-07-23 12:47:21 -0500102
Jerry Flood36267292017-04-17 18:07:47 -0400103Delete Instantiated VNF
104 [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 -0400105 ... The Teardown VNF needs to be in the teardown step of the test case...
Jerry Flood36267292017-04-17 18:07:47 -0400106 [Tags] deleteVNF
107 Setup Browser
108 Login To VID GUI
DR695Hc1103fb2019-07-22 12:37:45 -0400109 Delete VNF ${TENANT_NAME} ${VVG_SERVER_ID} ${CUSTOMER_NAME} ${SERVICE_INSTANCE_ID} ${STACK_NAMES} ${REVERSE_HEATBRIDGE}
110 [Teardown] Teardown VNF ${CUSTOMER_NAME} ${CATALOG_SERVICE_ID} ${CATALOG_RESOURCE_IDS}
Jerry Flood36267292017-04-17 18:07:47 -0400111
Jerry Flood596db382017-10-27 08:37:37 -0400112Run Heatbridge
113 [Documentation]
114 ... Try to run heatbridge
115 [Tags] heatbridge
DR695H1496bf52019-07-31 16:28:55 -0400116 Execute Heatbridge ${HB_STACK} ${HB_VNF} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS}
Jerry Flood596db382017-10-27 08:37:37 -0400117
Aaron Hayc3f081d2018-08-05 13:01:17 -0400118Preload APPC CDT GUI
119 [Documentation]
120 ... APPC CDT Preload Demo
121 [Tags] APPCCDTPreloadDemo
122 Setup Browser
123 Preload APPC CDT GUI
Aaron Hayc3f081d2018-08-05 13:01:17 -0400124
Yang Xu2ec80382018-11-01 12:30:37 -0400125Distribute vFWNG CDS Model
126 [Documentation] Distribute vFWNG for CDS
127 [Tags] DistributeVFWNG
128 [Timeout] 600
129 Model Distribution For Directory service=vFWNG cds=vfwng
130
Brian Freemanee02b312019-02-04 20:36:08 -0500131Distribute Demo vFWDT Model
132 [Documentation] Distribute Demo vFWDT (does not delete model after distribution)
133 [Tags] DistributeDemoVFWDT
134 [Timeout] 600
135 Model Distribution For Directory service=vFWDT
136
Brian Freemand1339742019-10-07 11:37:14 -0500137Download Service CSAR To Robot
138 [Tags] downloadCsar
139 Download CSAR ${CATALOG_SERVICE_ID}