fixing teardown issue 56/92056/2
authorDR695H <dr695h@att.com>
Thu, 25 Jul 2019 21:10:53 +0000 (17:10 -0400)
committerBrian Freeman <bf1936@att.com>
Thu, 25 Jul 2019 21:48:01 +0000 (21:48 +0000)
Issue-ID: TEST-179
Change-Id: I66b10246e8a991e6e60b79121bffff359ca40b26
Signed-off-by: DR695H <dr695h@att.com>
robot/resources/test_templates/model_test_template.robot
robot/testsuites/health-check.robot

index dbbe264..8fa502d 100644 (file)
@@ -13,6 +13,11 @@ ${ASDC_ASSETS_DIRECTORY}    ${GLOBAL_HEAT_TEMPLATES_FOLDER}
 ${ASDC_ZIP_DIRECTORY}    ${ASDC_ASSETS_DIRECTORY}/temp
 
 *** Keywords ***
+Model Distribution For Directory With Teardown
+    [Arguments]    ${service}   ${catalog_service_name}=    ${cds}=
+    ${catalog_service_name}    ${catalog_resource_name}    ${vf_modules}   ${catalog_resources}    ${catalog_resource_ids}   ${catalog_service_id}=    Model Distribution For Directory    ${service}   ${catalog_service_name}    ${cds}
+    [Teardown]    Teardown Models    ${catalog_service_id}    ${catalog_resource_ids}
+    
 Model Distribution For Directory
     [Arguments]    ${service}   ${catalog_service_name}=    ${cds}=
     ServiceMapping.Set Directory    default    ${GLOBAL_SERVICE_MAPPING_DIRECTORY}
@@ -32,7 +37,6 @@ Model Distribution For Directory
     ${catalog_service_name}    ${catalog_resource_name}    ${vf_modules}    ${catalog_resource_ids}   ${catalog_service_id}   ${catalog_resources}   Distribute Model From ASDC    ${ziplist}    ${catalog_service_name}    ${cds}   ${service}
     Download CSAR    ${catalog_service_id}   
     [Return]    ${catalog_service_name}    ${catalog_resource_name}    ${vf_modules}   ${catalog_resources}    ${catalog_resource_ids}   ${catalog_service_id}
-    [Teardown]    Teardown Models    ${catalog_service_id}    ${catalog_resource_ids}
 
 Teardown Models
     [Documentation]    Clean up at the end of the test
index 2202d30..466a6d2 100644 (file)
@@ -282,7 +282,7 @@ Basic VNFSDK Health Check
 Health Distribution Test
     [Tags]    healthdist
     [Timeout]    1200
-    Model Distribution For Directory    vFW
+    Model Distribution For Directory With Teardown   vFW
 
 Portal Login Tests
     [Tags]    healthlogin