aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-05-03 09:32:59 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2021-05-03 10:38:19 +0200
commit7a4140ec7c2ab44ed5b2cfe84f5d3ea03f6c0955 (patch)
tree50831d25159b0e06766574235785b15536111d10 /functest_kubernetes
parentbe836b8c8fb68bfb0d005b6e1237991785251fff (diff)
Update cnf-conformance to cnf-testsuite
https://github.com/cncf/cnf-conformance https://github.com/cncf/cnf-testsuite Change-Id: I77983e0f04781a92b34afcf82f21366384782964 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 959da00d3e1c4d406bc59995c0ea93add1ec48d3)
Diffstat (limited to 'functest_kubernetes')
-rw-r--r--functest_kubernetes/cnf_conformance/conformance.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/functest_kubernetes/cnf_conformance/conformance.py b/functest_kubernetes/cnf_conformance/conformance.py
index 3bb3170c..1ef42adc 100644
--- a/functest_kubernetes/cnf_conformance/conformance.py
+++ b/functest_kubernetes/cnf_conformance/conformance.py
@@ -11,7 +11,7 @@
The CNF Conformance program enables interoperability of Cloud native Network
Functions (CNFs) from multiple vendors running on top of Kubernetes supplied by
different vendors [1].
-[1] https://github.com/cncf/cnf-conformance
+[1] https://github.com/cncf/cnf-testsuite
"""
from __future__ import division
@@ -36,7 +36,7 @@ class CNFConformance(testcase.TestCase):
https://hackmd.io/@vulk/SkY54QnsU
"""
- src_dir = '/src/cnf-conformance'
+ src_dir = '/src/cnf-testsuite'
bin_dir = '/usr/local/bin'
default_tag = 'workload'
@@ -48,10 +48,10 @@ class CNFConformance(testcase.TestCase):
self.output_debug_log_name = 'functest-kubernetes.debug.log'
def check_requirements(self):
- """Check if cnf-conformance is in $PATH"""
- if not os.path.exists(os.path.join(self.bin_dir, 'cnf-conformance')):
+ """Check if cnf-testsuite is in $PATH"""
+ if not os.path.exists(os.path.join(self.bin_dir, 'cnf-testsuite')):
self.__logger.warning(
- "cnf-conformance is not compiled for arm and arm64 for the "
+ "cnf-testsuite is not compiled for arm and arm64 for the "
"time being")
self.is_skipped = True
@@ -70,21 +70,21 @@ class CNFConformance(testcase.TestCase):
os.path.join(self.src_dir, 'spec/fixtures', cfile),
os.path.join(self.res_dir, 'spec/fixtures', cfile))
os.chdir(self.res_dir)
- cmd = ['cnf-conformance', 'setup']
+ cmd = ['cnf-testsuite', 'setup']
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8"))
- cmd = ['cnf-conformance', 'cnf_setup',
+ cmd = ['cnf-testsuite', 'cnf_setup',
'cnf-config=cnf-conformance.yml']
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8"))
def run_conformance(self, **kwargs):
"""Run CNF Conformance"""
- cmd = ['cnf-conformance', kwargs.get("tag", self.default_tag)]
+ cmd = ['cnf-testsuite', kwargs.get("tag", self.default_tag)]
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8"))
lfiles = glob.glob(os.path.join(
- self.res_dir, 'results', 'cnf-conformance-results-*.yml'))
+ self.res_dir, 'results', 'cnf-testsuite-results-*.yml'))
results = max(lfiles, key=os.path.getmtime)
with open(os.path.join(self.res_dir, 'results', results)) as yfile:
self.details = yaml.safe_load(yfile)
@@ -112,7 +112,7 @@ class CNFConformance(testcase.TestCase):
self.stop_time = time.time()
def clean(self):
- cmd = ['cnf-conformance', 'cnf_cleanup',
+ cmd = ['cnf-testsuite', 'cnf_cleanup',
'cnf-config=cnf-conformance.yml']
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8"))