summaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates/model_test_template.robot
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2018-03-15 21:19:41 -0500
committerDR695H <dr695h@att.com>2018-03-19 18:02:32 -0400
commitf508ab2c087d7338cb010aa57ba8a974be6eb804 (patch)
treeb33c432819260e308c49aa7802ffbb4af232edf4 /robot/resources/test_templates/model_test_template.robot
parent3222e8f38187a0864b7f0aff1eb6779c70c1dd74 (diff)
Health Check SDC Distribution
Issue-ID: TEST-13 Change-Id: I19738aa1cea4de8f3fec6de5b8808a8c90f10f2a Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robot/resources/test_templates/model_test_template.robot')
-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