summaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates
diff options
context:
space:
mode:
authorDaniel Rose <dr695h@att.com>2018-03-20 20:23:31 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-20 20:23:31 +0000
commit0b1899ae88559c837d5da9f9ae2054a9f91edbe9 (patch)
tree2555c223b2ac6378d21dc474e28efd933beb2373 /robot/resources/test_templates
parent7cfa85aea59fec91968c5b3bf4f41e3fdfb804e8 (diff)
parentf508ab2c087d7338cb010aa57ba8a974be6eb804 (diff)
Merge "Health Check SDC Distribution"
Diffstat (limited to 'robot/resources/test_templates')
-rw-r--r--robot/resources/test_templates/model_test_template.robot5
1 files changed, 5 insertions, 0 deletions
diff --git a/robot/resources/test_templates/model_test_template.robot b/robot/resources/test_templates/model_test_template.robot
index 98b3b1cf..bd63d2b7 100644
--- a/robot/resources/test_templates/model_test_template.robot
+++ b/robot/resources/test_templates/model_test_template.robot
@@ -4,6 +4,7 @@ Library OperatingSystem
Library ArchiveLibrary
Library Collections
Library String
+Library DateTime
Resource ../asdc_interface.robot
Variables ../../assets/service_mappings.py
@@ -24,6 +25,10 @@ Model Distribution For Directory
[Arguments] ${service} ${catalog_service_name}=
${directory_list}= Get From Dictionary ${GLOBAL_SERVICE_FOLDER_MAPPING} ${service}
${ziplist}= Create List
+ ${uuid}= Get Current Date
+ ${service_name}= Catenate ${service} ${uuid}
+ ${shortened_uuid}= Evaluate str("${service_name}")[:23]
+ ${catalog_service_name}= Set Variable If '${catalog_service_name}' =='' ${shortened_uuid} ${catalog_service_name}
:for ${directory} in @{directory_list}
\ ${zipname}= Replace String ${directory} / _
\ ${zip}= Catenate ${ASDC_ZIP_DIRECTORY}/${zipname}.zip