blob: b60921d399b2906e87dc4d7d3e68b364cc73688e [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}
Jerry Flood596db382017-10-27 08:37:37 -040025
Jerry Flood36267292017-04-17 18:07:47 -040026*** Test Cases ***
jf986075010a42017-02-22 16:52:54 -050027Initialize Customer And Models
Jerry Flood36267292017-04-17 18:07:47 -040028 [Tags] InitDemo
29 Load Customer And Models Demonstration
jf986075010a42017-02-22 16:52:54 -050030
Brian Freeman8adf0862019-07-12 10:31:24 -050031Initialize SO Openstack Identity For V3
32 [Tags] InitDemo
DR695H0b4b16c2019-07-24 16:40:42 -040033 ${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 -040034 ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD}
DR695H0b4b16c2019-07-24 16:40:42 -040035 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 -050036
Jerry Floodbe0fa8e2017-04-21 17:31:05 -040037Initialize Customer
38 [Tags] InitCustomer
39 Load Customer Demonstration
Brian Freemane52bf122018-11-12 11:36:58 -050040 Load Customer SDN-ETHERNET-INTERNET
Jerry Floodbe0fa8e2017-04-21 17:31:05 -040041
42Initialize Models
43 [Tags] InitDistribution
44 Load Models Demonstration
45
jf986075010a42017-02-22 16:52:54 -050046Preload VNF
Jerry Flood36267292017-04-17 18:07:47 -040047 [Tags] PreloadDemo
DR695H1ccabd02019-07-15 17:19:12 -040048 Preload User Model ${VNF_NAME} ${MODULE_NAME} ${SERVICE} ${SERVICE_INSTANCE_ID}
Jerry Flood36267292017-04-17 18:07:47 -040049
jf986075010a42017-02-22 16:52:54 -050050Create APPC Mount Point
Jerry Flood36267292017-04-17 18:07:47 -040051 [Tags] APPCMountPointDemo
52 APPC Mount Point ${MODULE_NAME}
jf986075010a42017-02-22 16:52:54 -050053
Jerry Flood36267292017-04-17 18:07:47 -040054Instantiate VFW
55 [Tags] instantiateVFW
Brian Freemaneea42d42018-10-25 07:41:54 -050056 Instantiate VNF vFW base_vfw
Jerry Flood36267292017-04-17 18:07:47 -040057
Brian Freemancc2623b2018-10-29 09:15:15 -050058Instantiate Demo VFWCL
59 [Tags] instantiateDemoVFWCL
60 Instantiate Demo VNF vFWCL base_vpkg
61
Brian Freeman6737be52018-07-19 17:07:31 -050062Instantiate VFWCL
63 [Tags] instantiateVFWCL
Brian Freemand65e2aa2018-07-26 11:13:46 -050064 Instantiate VNF vFWCL base_vpkg
Brian Freeman6737be52018-07-19 17:07:31 -050065
Brian Freemanee02b312019-02-04 20:36:08 -050066Instantiate VFWDT
67 [Tags] instantiateVFWDT
68 Instantiate VNF vFWDT base_vpkg
69
Brian Freemanca5e32e2018-07-23 12:47:21 -050070
Jerry Flood36267292017-04-17 18:07:47 -040071Delete Instantiated VNF
72 [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 -040073 ... The Teardown VNF needs to be in the teardown step of the test case...
Jerry Flood36267292017-04-17 18:07:47 -040074 [Tags] deleteVNF
75 Setup Browser
76 Login To VID GUI
DR695Hc1103fb2019-07-22 12:37:45 -040077 Delete VNF ${TENANT_NAME} ${VVG_SERVER_ID} ${CUSTOMER_NAME} ${SERVICE_INSTANCE_ID} ${STACK_NAMES} ${REVERSE_HEATBRIDGE}
78 [Teardown] Teardown VNF ${CUSTOMER_NAME} ${CATALOG_SERVICE_ID} ${CATALOG_RESOURCE_IDS}
Jerry Flood36267292017-04-17 18:07:47 -040079
Jerry Flood596db382017-10-27 08:37:37 -040080Run Heatbridge
81 [Documentation]
82 ... Try to run heatbridge
83 [Tags] heatbridge
DR695H1ccabd02019-07-15 17:19:12 -040084 Execute Heatbridge ${HB_STACK} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS}
Jerry Flood596db382017-10-27 08:37:37 -040085
Aaron Hayc3f081d2018-08-05 13:01:17 -040086Preload APPC CDT GUI
87 [Documentation]
88 ... APPC CDT Preload Demo
89 [Tags] APPCCDTPreloadDemo
90 Setup Browser
91 Preload APPC CDT GUI
Aaron Hayc3f081d2018-08-05 13:01:17 -040092
Yang Xu2ec80382018-11-01 12:30:37 -040093Distribute vFWNG CDS Model
94 [Documentation] Distribute vFWNG for CDS
95 [Tags] DistributeVFWNG
96 [Timeout] 600
97 Model Distribution For Directory service=vFWNG cds=vfwng
98
Brian Freemanee02b312019-02-04 20:36:08 -050099Distribute Demo vFWDT Model
100 [Documentation] Distribute Demo vFWDT (does not delete model after distribution)
101 [Tags] DistributeDemoVFWDT
102 [Timeout] 600
103 Model Distribution For Directory service=vFWDT
104