Health Check SDC Distribution
Issue-ID: TEST-13
Change-Id: I19738aa1cea4de8f3fec6de5b8808a8c90f10f2a
Signed-off-by: DR695H <dr695h@att.com>
diff --git a/robot/resources/test_templates/model_test_template.robot b/robot/resources/test_templates/model_test_template.robot
index 98b3b1c..bd63d2b 100644
--- a/robot/resources/test_templates/model_test_template.robot
+++ b/robot/resources/test_templates/model_test_template.robot
@@ -4,6 +4,7 @@
Library ArchiveLibrary
Library Collections
Library String
+Library DateTime
Resource ../asdc_interface.robot
Variables ../../assets/service_mappings.py
@@ -24,6 +25,10 @@
[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