summaryrefslogtreecommitdiffstats
path: root/robot/resources/test_templates
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/test_templates')
-rw-r--r--robot/resources/test_templates/model_test_template.robot4
1 files changed, 3 insertions, 1 deletions
diff --git a/robot/resources/test_templates/model_test_template.robot b/robot/resources/test_templates/model_test_template.robot
index 7dc5adbd..49e3d3cc 100644
--- a/robot/resources/test_templates/model_test_template.robot
+++ b/robot/resources/test_templates/model_test_template.robot
@@ -27,6 +27,8 @@ Model Distribution For Directory
${ziplist}= Create List
${uuid}= Get Current Date
${service_name}= Catenate ${service} ${uuid}
+ # ':' is not an allowed character in the service_name. '-' is allowed
+ S{service_name}= Replace String ${service_name} : -
${shortened_uuid}= Evaluate str("${service_name}")[:23]
${catalog_service_name}= Set Variable If '${catalog_service_name}' =='' ${shortened_uuid} ${catalog_service_name}
Run Keyword If '${resourceType}'=='PNF' Create CSARSs in SDC Onboarding Packages Directory ${directory_list} ${ziplist}
@@ -85,4 +87,4 @@ Teardown Models
\ ${resourece_json}= Mark SDC Catalog Resource Inactive ${catalog_resource_id}
${service_json}= Mark SDC Catalog Service Inactive ${catalog_service_id}
${services_json}= Delete Inactive SDC Catalog Services
- ${resources_json}= Delete Inactive SDC Catalog Resources \ No newline at end of file
+ ${resources_json}= Delete Inactive SDC Catalog Resources