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} |
DR695H | 1496bf5 | 2019-07-31 16:28:55 -0400 | [diff] [blame] | 25 | ${HB_VNF} |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 26 | |
Brian Freeman | 7fee2e6 | 2019-11-05 15:39:34 -0500 | [diff] [blame] | 27 | ${API_TYPE} VNF_API |
| 28 | |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 29 | *** Test Cases *** |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 30 | Initialize Customer And Models |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 31 | [Tags] InitDemo |
| 32 | Load Customer And Models Demonstration |
Brian Freeman | d133974 | 2019-10-07 11:37:14 -0500 | [diff] [blame] | 33 | Load Customer SDN-ETHERNET-INTERNET |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 34 | |
Brian Freeman | 8adf086 | 2019-07-12 10:31:24 -0500 | [diff] [blame] | 35 | Initialize SO Openstack Identity For V3 |
| 36 | [Tags] InitDemo |
mrichomme | 3256fa2 | 2020-03-09 11:23:35 +0100 | [diff] [blame] | 37 | ${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] | 38 | ${auth}= Create List ${GLOBAL_SO_CATDB_USERNAME} ${GLOBAL_SO_PASSWORD} |
DR695H | 0b4b16c | 2019-07-24 16:40:42 -0400 | [diff] [blame] | 39 | 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] | 40 | |
Brian Freeman | 026df1b | 2019-12-05 16:21:20 -0500 | [diff] [blame] | 41 | Initialize vCPE Models |
| 42 | [Tags] distributeVCPE |
| 43 | Load vCPE Models |
| 44 | |
Jerry Flood | be0fa8e | 2017-04-21 17:31:05 -0400 | [diff] [blame] | 45 | Initialize Customer |
| 46 | [Tags] InitCustomer |
| 47 | Load Customer Demonstration |
Brian Freeman | e52bf12 | 2018-11-12 11:36:58 -0500 | [diff] [blame] | 48 | Load Customer SDN-ETHERNET-INTERNET |
Jerry Flood | be0fa8e | 2017-04-21 17:31:05 -0400 | [diff] [blame] | 49 | |
| 50 | Initialize Models |
| 51 | [Tags] InitDistribution |
| 52 | Load Models Demonstration |
| 53 | |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 54 | Preload VNF |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 55 | [Tags] PreloadDemo |
DR695H | 1ccabd0 | 2019-07-15 17:19:12 -0400 | [diff] [blame] | 56 | Preload User Model ${VNF_NAME} ${MODULE_NAME} ${SERVICE} ${SERVICE_INSTANCE_ID} |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 57 | |
Brian Freeman | 7fee2e6 | 2019-11-05 15:39:34 -0500 | [diff] [blame] | 58 | Preload 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 | |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 63 | Create APPC Mount Point |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 64 | [Tags] APPCMountPointDemo |
| 65 | APPC Mount Point ${MODULE_NAME} |
jf9860 | 75010a4 | 2017-02-22 16:52:54 -0500 | [diff] [blame] | 66 | |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 67 | Instantiate VFW |
| 68 | [Tags] instantiateVFW |
Brian Freeman | eea42d4 | 2018-10-25 07:41:54 -0500 | [diff] [blame] | 69 | Instantiate VNF vFW base_vfw |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 70 | |
Brian Freeman | cc2623b | 2018-10-29 09:15:15 -0500 | [diff] [blame] | 71 | Instantiate Demo VFWCL |
| 72 | [Tags] instantiateDemoVFWCL |
| 73 | Instantiate Demo VNF vFWCL base_vpkg |
| 74 | |
Brian Freeman | 6737be5 | 2018-07-19 17:07:31 -0500 | [diff] [blame] | 75 | Instantiate VFWCL |
| 76 | [Tags] instantiateVFWCL |
Brian Freeman | d65e2aa | 2018-07-26 11:13:46 -0500 | [diff] [blame] | 77 | Instantiate VNF vFWCL base_vpkg |
Brian Freeman | 6737be5 | 2018-07-19 17:07:31 -0500 | [diff] [blame] | 78 | |
Brian Freeman | 059963c | 2019-10-24 09:55:40 -0500 | [diff] [blame] | 79 | Instantiate VFWCL GRA |
| 80 | [Tags] instantiateVFWCLGRA |
| 81 | Set Global Variable ${API_TYPE} GRA_API |
| 82 | Instantiate VNF vFWCL base_vpkg |
| 83 | |
Brian Freeman | 17bab9f | 2020-04-27 18:27:26 -0500 | [diff] [blame] | 84 | Instantiate VFWCL DANOS |
| 85 | [Tags] instantiateVFWCLDN |
| 86 | Set Global Variable ${API_TYPE} GRA_API |
| 87 | Instantiate VNF vFWCLDN base_vpkg |
| 88 | |
Brian Freeman | 059963c | 2019-10-24 09:55:40 -0500 | [diff] [blame] | 89 | Instantiate VLB GRA |
| 90 | [Tags] instantiateVLBGRA |
| 91 | Set Global Variable ${API_TYPE} GRA_API |
| 92 | Instantiate VNF vLB base_vpkg |
| 93 | |
| 94 | Instantiate VFWDT GRA |
| 95 | [Tags] instantiateVFWDTGRA |
| 96 | Set Global Variable ${API_TYPE} GRA_API |
| 97 | Instantiate VNF vFWDT base_vpkg |
| 98 | |
| 99 | |
Brian Freeman | ee02b31 | 2019-02-04 20:36:08 -0500 | [diff] [blame] | 100 | Instantiate VFWDT |
| 101 | [Tags] instantiateVFWDT |
| 102 | Instantiate VNF vFWDT base_vpkg |
| 103 | |
Abdelmuhaimen Seaudi | 94cc783 | 2019-08-14 17:53:15 +0000 | [diff] [blame] | 104 | Instantiate VLB_CDS |
| 105 | [Tags] instantiateVLB_CDS |
DR695H | cccad65 | 2019-09-16 13:21:47 -0400 | [diff] [blame] | 106 | Instantiate VNF CDS vLB_CDS demoVLB_CDS |
Brian Freeman | ca5e32e | 2018-07-23 12:47:21 -0500 | [diff] [blame] | 107 | |
Jerry Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 108 | Delete Instantiated VNF |
| 109 | [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] | 110 | ... 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] | 111 | [Tags] deleteVNF |
| 112 | Setup Browser |
| 113 | Login To VID GUI |
DR695H | c1103fb | 2019-07-22 12:37:45 -0400 | [diff] [blame] | 114 | 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 Flood | 3626729 | 2017-04-17 18:07:47 -0400 | [diff] [blame] | 116 | |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 117 | Run Heatbridge |
| 118 | [Documentation] |
| 119 | ... Try to run heatbridge |
| 120 | [Tags] heatbridge |
DR695H | 1496bf5 | 2019-07-31 16:28:55 -0400 | [diff] [blame] | 121 | Execute Heatbridge ${HB_STACK} ${HB_VNF} ${HB_SERVICE} ${HB_IPV4_OAM_ADDRESS} |
Jerry Flood | 596db38 | 2017-10-27 08:37:37 -0400 | [diff] [blame] | 122 | |
Aaron Hay | c3f081d | 2018-08-05 13:01:17 -0400 | [diff] [blame] | 123 | Preload APPC CDT GUI |
| 124 | [Documentation] |
| 125 | ... APPC CDT Preload Demo |
| 126 | [Tags] APPCCDTPreloadDemo |
| 127 | Setup Browser |
| 128 | Preload APPC CDT GUI |
Aaron Hay | c3f081d | 2018-08-05 13:01:17 -0400 | [diff] [blame] | 129 | |
Yang Xu | 2ec8038 | 2018-11-01 12:30:37 -0400 | [diff] [blame] | 130 | Distribute 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 Freeman | ee02b31 | 2019-02-04 20:36:08 -0500 | [diff] [blame] | 136 | Distribute Demo vFWDT Model |
| 137 | [Documentation] Distribute Demo vFWDT (does not delete model after distribution) |
| 138 | [Tags] DistributeDemoVFWDT |
| 139 | [Timeout] 600 |
mrichomme | 3256fa2 | 2020-03-09 11:23:35 +0100 | [diff] [blame] | 140 | Model Distribution For Directory service=vFWDT |
Brian Freeman | ee02b31 | 2019-02-04 20:36:08 -0500 | [diff] [blame] | 141 | |
Brian Freeman | d133974 | 2019-10-07 11:37:14 -0500 | [diff] [blame] | 142 | Download Service CSAR To Robot |
| 143 | [Tags] downloadCsar |
| 144 | Download CSAR ${CATALOG_SERVICE_ID} |