diff options
author | Daniel Rose <DR695H@list.att.com> | 2017-04-24 15:36:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-04-24 15:36:44 +0000 |
commit | 9ff3fb5db713258435603bbf7a3922823afe6f1f (patch) | |
tree | 467b2a1df7f8fdc7ff2fe28d8c5e0430d176626d /robot/testsuites | |
parent | fe22bf1bff99ec4daa22fdf90cb16ac1e3d175e0 (diff) | |
parent | be0fa8e56ee558f3e6f18ff5303a47ff9687ad4a (diff) |
Merge "[TEST-25] Add commands to demo.sh"
Diffstat (limited to 'robot/testsuites')
-rw-r--r-- | robot/testsuites/demo.robot | 58 |
1 files changed, 12 insertions, 46 deletions
diff --git a/robot/testsuites/demo.robot b/robot/testsuites/demo.robot index 0f1d68b9..74a78d45 100644 --- a/robot/testsuites/demo.robot +++ b/robot/testsuites/demo.robot @@ -1,13 +1,8 @@ *** Settings *** Documentation Executes the VNF Orchestration Test cases including setup and teardown ... - -Library Collections -Library OperatingSystem - +Library Collections Resource ../resources/demo_preload.robot -Resource ../resources/test_templates/vnf_orchestration_test_template.robot - *** Variables *** ${VNF_NAME} DemoVNF @@ -18,61 +13,32 @@ Initialize Customer And Models [Tags] InitDemo Load Customer And Models Demonstration +Initialize Customer + [Tags] InitCustomer + Load Customer Demonstration + +Initialize Models + [Tags] InitDistribution + Load Models Demonstration + Preload VNF [Tags] PreloadDemo - Preload Demo ${VNF_NAME} ${MODULE_NAME} + Preload User Model ${VNF_NAME} ${MODULE_NAME} Create APPC Mount Point [Tags] APPCMountPointDemo APPC Mount Point ${MODULE_NAME} - - Instantiate VFW [Tags] instantiateVFW - Setup Orchestrate VNF ${GLOBAL_AAI_CLOUD_OWNER} SharedNode OwnerType v1 CloudZone - ${vf_module_name} ${service}= Orchestrate VNF DemoCust vFW vFW ${TENANT_NAME} - Save For Delete - Log to Console Customer Name=${CUSTOMER_NAME} - Log to Console VNF Module Name=${vf_module_name} + Instantiate VNF vFW Delete Instantiated VNF [Documentation] This test assumes all necessary variables are loaded via the variable file create in Save For Delete + ... The Teardown VNF needs to be in the teardown step of the test case... [Tags] deleteVNF Setup Browser Login To VID GUI Delete VNF [Teardown] Teardown VNF - -*** Keywords *** -Save For Delete - [Documentation] Create a variable file to be loaded for save for delete - ${dict}= Create Dictionary - Set To Dictionary ${dict} TENANT_NAME=${TENANT_NAME} - Set To Dictionary ${dict} TENANT_ID=${TENANT_ID} - Set To Dictionary ${dict} CUSTOMER_NAME=${CUSTOMER_NAME} - Set To Dictionary ${dict} STACK_NAME=${STACK_NAME} - Set To Dictionary ${dict} SERVICE=${SERVICE} - Set To Dictionary ${dict} VVG_SERVER_ID=${VVG_SERVER_ID} - Set To Dictionary ${dict} SERVICE_INSTANCE_ID=${SERVICE_INSTANCE_ID} - - Set To Dictionary ${dict} VLB_CLOSED_LOOP_DELETE=${VLB_CLOSED_LOOP_DELETE} - Set To Dictionary ${dict} VLB_CLOSED_LOOP_VNF_ID=${VLB_CLOSED_LOOP_VNF_ID} - - Set To Dictionary ${dict} CATALOG_SERVICE_ID=${CATALOG_SERVICE_ID} - - ${vars}= Catenate - ${keys}= Get Dictionary Keys ${dict} - :for ${key} in @{keys} - \ ${value}= Get From Dictionary ${dict} ${key} - \ ${vars}= Catenate ${vars}${key} = "${value}"\n - - ${comma}= Catenate - ${vars}= Catenate ${vars}CATALOG_RESOURCE_IDS = [ - :for ${id} in @{CATALOG_RESOURCE_IDS} - \ ${vars}= Catenate ${vars}${comma} "${id}" - \ ${comma}= Catenate , - ${vars}= Catenate ${vars}]\n - OperatingSystem.Create File /share/${STACK_NAME}.py ${vars} - |