diff options
author | 2024-01-16 13:59:48 +0100 | |
---|---|---|
committer | 2024-01-16 14:23:20 +0100 | |
commit | 0b3cd7438bf4f0fed26330fdc039ae9b0142741b (patch) | |
tree | c0b0b9285ee7f02ffeff2ea6c9c66a45c93a82e7 /functest_kubernetes/netperf/netperf.py | |
parent | 6988dd7dd0e594d847f8e700444aab8b13d6ee88 (diff) |
Enforce baseline psp for cnf_testsuite
It would be better not to change the default
namespace.
Change-Id: I9fde052d4dd7e0e4f6551213e2028c91c0296e42
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit d0b8d65cdea15ef7fc0a431add4701ac817da5f2)
Diffstat (limited to 'functest_kubernetes/netperf/netperf.py')
-rw-r--r-- | functest_kubernetes/netperf/netperf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functest_kubernetes/netperf/netperf.py b/functest_kubernetes/netperf/netperf.py index 5923cb78..05976325 100644 --- a/functest_kubernetes/netperf/netperf.py +++ b/functest_kubernetes/netperf/netperf.py @@ -25,6 +25,7 @@ from xtesting.core import testcase class Netperf(testcase.TestCase): + # pylint: disable=too-many-instance-attributes """Run Benchmarking Kubernetes Networking Performance""" ns_generate_name = "netperf-" @@ -36,6 +37,7 @@ class Netperf(testcase.TestCase): self.corev1 = client.CoreV1Api() self.output_log_name = 'functest-kubernetes.log' self.output_debug_log_name = 'functest-kubernetes.debug.log' + self.namespace = '' def check_requirements(self): """Check if launch is in $PATH""" @@ -87,7 +89,7 @@ class Netperf(testcase.TestCase): def clean(self): if self.namespace: try: - api_response = self.corev1.delete_namespace(self.namespace) + self.corev1.delete_namespace(self.namespace) self.__logger.debug("delete_namespace: %s", self.namespace) except client.rest.ApiException: pass |