From 30fc5f1f2d1ef94d94a96b54739f82fac8b1aecd Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 30 Aug 2018 07:47:48 +0200 Subject: Ensure len(project_name) < 64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/259/console https://build.opnfv.org/ci/view/functest/job/functest-fuel-baremetal-daily-master/428/console Change-Id: Ib64878962a71b6b45ef039fce8bfaa43172b2498 Signed-off-by: Cédric Ollivier (cherry picked from commit 3eec6556fa20e51d5e6596253393199469c83556) --- functest/core/tenantnetwork.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py index 4ca5fdb54..40b25e726 100644 --- a/functest/core/tenantnetwork.py +++ b/functest/core/tenantnetwork.py @@ -59,7 +59,7 @@ class NewProject(object): name_or_id=self.orig_cloud.auth.get( "project_domain_name", "Default")) self.project = self.orig_cloud.create_project( - name='{}-project_{}'.format(self.case_name, self.guid), + name='{}-project_{}'.format(self.case_name[:18], self.guid), description="Created by OPNFV Functest: {}".format( self.case_name), domain_id=self.domain.id) -- cgit 1.2.3-korg