aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/ims/ims.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-09-22 16:47:04 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2020-09-22 16:47:04 +0200
commit3a3bd294ea8101c22896d8601fe2723861f73124 (patch)
treece46c8bf606a5a81de2354e3931165b583da3a78 /functest_kubernetes/ims/ims.py
parentaed4dd8a97dbfcb9d0558f2df8f8ef8696f2c421 (diff)
Stop hardcoding ims- as generate_name
Change-Id: I3ea22a4050ff1eb609cffb61edc41c49fab44366 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest_kubernetes/ims/ims.py')
-rw-r--r--functest_kubernetes/ims/ims.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/functest_kubernetes/ims/ims.py b/functest_kubernetes/ims/ims.py
index c5270f43..adb46023 100644
--- a/functest_kubernetes/ims/ims.py
+++ b/functest_kubernetes/ims/ims.py
@@ -38,6 +38,7 @@ class Vims(testcase.TestCase): # pylint: disable=too-many-instance-attributes
metadata_name = "env-vars"
test_image_name = "ollivier/clearwater-live-test:hunter"
test_container_name = "live-test"
+ ns_generate_name = "ims-"
__logger = logging.getLogger(__name__)
@@ -64,7 +65,7 @@ class Vims(testcase.TestCase): # pylint: disable=too-many-instance-attributes
"""
api_response = self.corev1.create_namespace(
client.V1Namespace(metadata=client.V1ObjectMeta(
- generate_name="ims-")))
+ generate_name=self.ns_generate_name)))
self.namespace = api_response.metadata.name
self.__logger.debug("create_namespace: %s", api_response)
self.zone = '{}.svc.cluster.local'.format(self.namespace)