From d783537fa4ab779adf9151c91bb82ec31f58a7c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Sat, 14 Mar 2020 08:30:33 +0100 Subject: [PATCH] Override the right log files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Else Xtesting publishes the default xtesting.log [1] [1] https://build.opnfv.org/ci/job/functest-kubernetes-opnfv-functest-kubernetes-security-latest-kube_hunter-run/2/console Change-Id: I0b9b9eda04762771d4e10f0d124b4d5f2975a4da Signed-off-by: Cédric Ollivier (cherry picked from commit 36039d940f473d7385d918375390e804b626bad2) --- functest_kubernetes/ims/ims.py | 2 ++ functest_kubernetes/security/security.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/functest_kubernetes/ims/ims.py b/functest_kubernetes/ims/ims.py index 8fc5adc5..e12c0024 100644 --- a/functest_kubernetes/ims/ims.py +++ b/functest_kubernetes/ims/ims.py @@ -50,6 +50,8 @@ class Vims(testcase.TestCase): config.load_kube_config() self.corev1 = client.CoreV1Api() self.appsv1 = client.AppsV1Api() + self.output_log_name = 'functest-kubernetes.log' + self.output_debug_log_name = 'functest-kubernetes.debug.log' def deploy_vnf(self): """Deploy vIMS as proposed by clearwater-docker diff --git a/functest_kubernetes/security/security.py b/functest_kubernetes/security/security.py index f4e10ca3..437bdf37 100644 --- a/functest_kubernetes/security/security.py +++ b/functest_kubernetes/security/security.py @@ -25,6 +25,7 @@ from xtesting.core import testcase class SecurityTesting(testcase.TestCase): + # pylint: disable=too-many-instance-attributes """Run Security job""" namespace = 'default' watch_timeout = 1200 @@ -38,6 +39,8 @@ class SecurityTesting(testcase.TestCase): self.batchv1 = client.BatchV1Api() self.pod = None self.job_name = None + self.output_log_name = 'functest-kubernetes.log' + self.output_debug_log_name = 'functest-kubernetes.debug.log' def deploy_job(self): """Run Security job -- 2.16.6