blob: 6ec506a3f0c7fb8c2fec96e0c2e053c28fd5ada3 [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
Jerry Flood36267292017-04-17 18:07:47 -040063Instantiate VFW
64 [Tags] instantiateVFW
Brian Freemaneea42d42018-10-25 07:41:54 -050065 Instantiate VNF vFW base_vfw
Jerry Flood36267292017-04-17 18:07:47 -040066
Brian Freemancc2623b2018-10-29 09:15:15 -050067Instantiate Demo VFWCL
68 [Tags] instantiateDemoVFWCL
69 Instantiate Demo VNF vFWCL base_vpkg
70
Brian Freemana68b17b2020-05-20 14:51:37 -050071Instantiate Demo VFWCL GRA
72 [Tags] instantiateDemoVFWCLGRA
73 Set Global Variable ${API_TYPE} GRA_API
74 Instantiate Demo VNF vFWCL base_vpkg
75
Brian Freeman6737be52018-07-19 17:07:31 -050076Instantiate VFWCL
77 [Tags] instantiateVFWCL
Brian Freemand65e2aa2018-07-26 11:13:46 -050078 Instantiate VNF vFWCL base_vpkg
Brian Freeman6737be52018-07-19 17:07:31 -050079
Brian Freeman059963c2019-10-24 09:55:40 -050080Instantiate VFWCL GRA
81 [Tags] instantiateVFWCLGRA
82 Set Global Variable ${API_TYPE} GRA_API
83 Instantiate VNF vFWCL base_vpkg
84
Brian Freeman17bab9f2020-04-27 18:27:26 -050085Instantiate VFWCL DANOS
86 [Tags] instantiateVFWCLDN
87 Set Global Variable ${API_TYPE} GRA_API
88 Instantiate VNF vFWCLDN base_vpkg
89
Brian Freeman059963c2019-10-24 09:55:40 -050090Instantiate VLB GRA
91 [Tags] instantiateVLBGRA
92 Set Global Variable ${API_TYPE} GRA_API
93 Instantiate VNF vLB base_vpkg
94
95Instantiate VFWDT GRA
96 [Tags] instantiateVFWDTGRA
97 Set Global Variable ${API_TYPE} GRA_API
98 Instantiate VNF vFWDT base_vpkg
99
100
Brian Freemanee02b312019-02-04 20:36:08 -0500101Instantiate VFWDT
102 [Tags] instantiateVFWDT
103 Instantiate VNF vFWDT base_vpkg
104
Abdelmuhaimen Seaudi94cc7832019-08-14 17:53:15 +0000105Instantiate VLB_CDS
106 [Tags] instantiateVLB_CDS
DR695Hcccad652019-09-16 13:21:47 -0400107 Instantiate VNF CDS vLB_CDS demoVLB_CDS
Brian Freemanca5e32e2018-07-23 12:47:21 -0500108
Jerry Flood36267292017-04-17 18:07:47 -0400109Delete Instantiated VNF
110 [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 -0400111 ... The Teardown VNF needs to be in the teardown step of the test case...
Jerry Flood36267292017-04-17 18:07:47 -0400112 [Tags] deleteVNF
113 Setup Browser
114 Login To VID GUI
DR695Hc1103fb2019-07-22 12:37:45 -0400115 Delete VNF ${TENANT_NAME} ${VVG_SERVER_ID} ${CUSTOMER_NAME} ${SERVICE_INSTANCE_ID} ${STACK_NAMES} ${REVERSE_HEATBRIDGE}
116 [Teardown] Teardown VNF ${CUSTOMER_NAME} ${CATALOG_SERVICE_ID} ${CATALOG_RESOURCE_IDS}
Jerry Flood36267292017-04-17 18:07:47 -0400117
Brian Freemand2aa3522020-11-24 09:41:38 -0500118#Run Heatbridge
119# [Documentation]
120# ... Try to run heatbridge
121# [Tags] heatbridge
122# Execute Heatbridge ${HB_STACK} ${HB_VNF} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS}
Jerry Flood596db382017-10-27 08:37:37 -0400123
Yang Xu2ec80382018-11-01 12:30:37 -0400124Distribute vFWNG CDS Model
125 [Documentation] Distribute vFWNG for CDS
126 [Tags] DistributeVFWNG
127 [Timeout] 600
128 Model Distribution For Directory service=vFWNG cds=vfwng
129
Brian Freemanee02b312019-02-04 20:36:08 -0500130Distribute Demo vFWDT Model
131 [Documentation] Distribute Demo vFWDT (does not delete model after distribution)
132 [Tags] DistributeDemoVFWDT
133 [Timeout] 600
mrichomme3256fa22020-03-09 11:23:35 +0100134 Model Distribution For Directory service=vFWDT
Brian Freemanee02b312019-02-04 20:36:08 -0500135
Brian Freemand1339742019-10-07 11:37:14 -0500136Download Service CSAR To Robot
137 [Tags] downloadCsar
138 Download CSAR ${CATALOG_SERVICE_ID}