jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Executes the VNF Orchestration Test cases including setup and teardown |
DR695H | 0b4b16c | 2019-07-24 16:40:42 -0400 | [diff] [blame] | 3 | |
| 4 | Library ONAPLibrary.SO WITH NAME SO |
Jerry Flood | be0fa8e | 2017-04-21 17:31:05 -0400 | [diff] [blame] | 5 | Library Collections |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 6 | Resource ../resources/demo_preload.robot |
Brian Freeman | 8adf086 | 2019-07-12 10:31:24 -0500 | [diff] [blame] | 7 | |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 8 | *** Variables *** |
| 9 | |
| 10 | ${VNF_NAME} DemoVNF |
| 11 | ${MODULE_NAME} DemoModuleName |
| 12 | |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 13 | ${HB_STACK} |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 14 | ${HB_SERVICE} |
DR695H | 910097e | 2019-05-08 13:55:32 -0400 | [diff] [blame] | 15 | ${HB_IPV4_OAM_ADDRESS} |
DR695H | 3148028 | 2019-07-12 18:34:15 -0400 | [diff] [blame] | 16 | ${TENANT_NAME} |
| 17 | ${VVG_SERVER_ID} |
| 18 | ${SERVICE} |
DR695H | 1ccabd0 | 2019-07-15 17:19:12 -0400 | [diff] [blame] | 19 | ${CUSTOMER_NAME} |
| 20 | ${SERVICE_INSTANCE_ID} |
| 21 | ${STACK_NAMES} |
DR695H | c1103fb | 2019-07-22 12:37:45 -0400 | [diff] [blame] | 22 | ${CATALOG_SERVICE_ID} |
| 23 | ${CATALOG_RESOURCE_IDS} |
| 24 | ${REVERSE_HEATBRIDGE} |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 25 | |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 26 | *** Test Cases *** |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 27 | Initialize Customer And Models |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 28 | [Tags] InitDemo |
| 29 | Load Customer And Models Demonstration |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 30 | |
Brian Freeman | 8adf086 | 2019-07-12 10:31:24 -0500 | [diff] [blame] | 31 | Initialize SO Openstack Identity For V3 |
| 32 | [Tags] InitDemo |
DR695H | 0b4b16c | 2019-07-24 16:40:42 -0400 | [diff] [blame] | 33 | ${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} |
DR695H | c0cf6a4 | 2019-07-26 16:42:36 -0400 | [diff] [blame^] | 34 | ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD} |
DR695H | 0b4b16c | 2019-07-24 16:40:42 -0400 | [diff] [blame] | 35 | 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 Freeman | 8adf086 | 2019-07-12 10:31:24 -0500 | [diff] [blame] | 36 | |
Jerry Flood | be0fa8e | 2017-04-21 17:31:05 -0400 | [diff] [blame] | 37 | Initialize Customer |
| 38 | [Tags] InitCustomer |
| 39 | Load Customer Demonstration |
Brian Freeman | e52bf12 | 2018-11-12 11:36:58 -0500 | [diff] [blame] | 40 | Load Customer SDN-ETHERNET-INTERNET |
Jerry Flood | be0fa8e | 2017-04-21 17:31:05 -0400 | [diff] [blame] | 41 | |
| 42 | Initialize Models |
| 43 | [Tags] InitDistribution |
| 44 | Load Models Demonstration |
| 45 | |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 46 | Preload VNF |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 47 | [Tags] PreloadDemo |
DR695H | 1ccabd0 | 2019-07-15 17:19:12 -0400 | [diff] [blame] | 48 | Preload User Model ${VNF_NAME} ${MODULE_NAME} ${SERVICE} ${SERVICE_INSTANCE_ID} |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 49 | |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 50 | Create APPC Mount Point |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 51 | [Tags] APPCMountPointDemo |
| 52 | APPC Mount Point ${MODULE_NAME} |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 53 | |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 54 | Instantiate VFW |
| 55 | [Tags] instantiateVFW |
Brian Freeman | eea42d4 | 2018-10-25 07:41:54 -0500 | [diff] [blame] | 56 | Instantiate VNF vFW base_vfw |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 57 | |
Brian Freeman | cc2623b | 2018-10-29 09:15:15 -0500 | [diff] [blame] | 58 | Instantiate Demo VFWCL |
| 59 | [Tags] instantiateDemoVFWCL |
| 60 | Instantiate Demo VNF vFWCL base_vpkg |
| 61 | |
Brian Freeman | 6737be5 | 2018-07-19 17:07:31 -0500 | [diff] [blame] | 62 | Instantiate VFWCL |
| 63 | [Tags] instantiateVFWCL |
Brian Freeman | d65e2aa | 2018-07-26 11:13:46 -0500 | [diff] [blame] | 64 | Instantiate VNF vFWCL base_vpkg |
Brian Freeman | 6737be5 | 2018-07-19 17:07:31 -0500 | [diff] [blame] | 65 | |
Brian Freeman | ee02b31 | 2019-02-04 20:36:08 -0500 | [diff] [blame] | 66 | Instantiate VFWDT |
| 67 | [Tags] instantiateVFWDT |
| 68 | Instantiate VNF vFWDT base_vpkg |
| 69 | |
Brian Freeman | ca5e32e | 2018-07-23 12:47:21 -0500 | [diff] [blame] | 70 | |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 71 | Delete Instantiated VNF |
| 72 | [Documentation] This test assumes all necessary variables are loaded via the variable file create in Save For Delete |
Jerry Flood | be0fa8e | 2017-04-21 17:31:05 -0400 | [diff] [blame] | 73 | ... The Teardown VNF needs to be in the teardown step of the test case... |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 74 | [Tags] deleteVNF |
| 75 | Setup Browser |
| 76 | Login To VID GUI |
DR695H | c1103fb | 2019-07-22 12:37:45 -0400 | [diff] [blame] | 77 | 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 Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 79 | |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 80 | Run Heatbridge |
| 81 | [Documentation] |
| 82 | ... Try to run heatbridge |
| 83 | [Tags] heatbridge |
DR695H | 1ccabd0 | 2019-07-15 17:19:12 -0400 | [diff] [blame] | 84 | Execute Heatbridge ${HB_STACK} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS} |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 85 | |
Aaron Hay | c3f081d | 2018-08-05 13:01:17 -0400 | [diff] [blame] | 86 | Preload APPC CDT GUI |
| 87 | [Documentation] |
| 88 | ... APPC CDT Preload Demo |
| 89 | [Tags] APPCCDTPreloadDemo |
| 90 | Setup Browser |
| 91 | Preload APPC CDT GUI |
Aaron Hay | c3f081d | 2018-08-05 13:01:17 -0400 | [diff] [blame] | 92 | |
Yang Xu | 2ec8038 | 2018-11-01 12:30:37 -0400 | [diff] [blame] | 93 | Distribute 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 Freeman | ee02b31 | 2019-02-04 20:36:08 -0500 | [diff] [blame] | 99 | Distribute 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 | |