aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-10-17 09:09:54 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-10-17 09:41:11 +0200
commit2b73a2347d7eb4c5a9704917b4201fcd6d3332ad (patch)
tree38c93e1723cca8623affb8d4ac3b5afd5f2e3704
parent618a8a5bac574bf5f1914c14151db579c9bc033f (diff)
Update cnf_testsuite v0.34.0
It now runs cert (replacing workload) It downgrades msg to warning as cnf_testsuite now returns non 0 values. Change-Id: I0ce4f201065bf601111d7154cb4afa31e9a4666c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--docker/cnf/Dockerfile3
-rw-r--r--functest_kubernetes/cnf_conformance/conformance.py8
2 files changed, 6 insertions, 5 deletions
diff --git a/docker/cnf/Dockerfile b/docker/cnf/Dockerfile
index 9eaae4d4..f88294b4 100644
--- a/docker/cnf/Dockerfile
+++ b/docker/cnf/Dockerfile
@@ -1,7 +1,7 @@
FROM opnfv/functest-kubernetes-core:v1.25
ARG K8S_TAG=1.25
-ARG CNF_TESTSUITE_TAG=v0.15.0
+ARG CNF_TESTSUITE_TAG=v0.34.0
ARG HELM_TAG=v3.3.1
RUN apk --no-cache add --update wget curl libc6-compat ncurses && \
@@ -27,6 +27,7 @@ RUN apk --no-cache add --update wget curl libc6-compat ncurses && \
git checkout FETCH_HEAD) && \
ln -s /src/cnf-testsuite/example-cnfs/coredns/cnf-testsuite.yml /src/cnf-testsuite/cnf-testsuite.yml && \
ln -s /src/cnf-testsuite/points-all.yml /src/cnf-testsuite/points.yml && \
+ ln -s /usr/local/bin/cnf-testsuite /src/cnf-testsuite/cnf-testsuite && \
rm -rf /src/cnf-testsuite-$CNF_TESTSUITE_TAG.tar.gz /src/cnf-testsuite/.git ;; esac
COPY testcases.yaml /etc/xtesting/testcases.yaml
CMD ["run_tests", "-t", "all"]
diff --git a/functest_kubernetes/cnf_conformance/conformance.py b/functest_kubernetes/cnf_conformance/conformance.py
index e3e3fe0d..a248928e 100644
--- a/functest_kubernetes/cnf_conformance/conformance.py
+++ b/functest_kubernetes/cnf_conformance/conformance.py
@@ -38,7 +38,7 @@ class CNFConformance(testcase.TestCase):
src_dir = '/src/cnf-testsuite'
bin_dir = '/usr/local/bin'
- default_tag = 'workload'
+ default_tag = 'cert'
__logger = logging.getLogger(__name__)
@@ -110,15 +110,15 @@ class CNFConformance(testcase.TestCase):
self.setup()
self.run_conformance(**kwargs)
except subprocess.CalledProcessError as exc:
- self.__logger.exception(
+ self.__logger.warning(
"Can not run CNT Conformance: \n%s\n%s\n",
" ".join(exc.cmd), exc.output.decode("utf-8"))
except Exception: # pylint: disable=broad-except
- self.__logger.exception("Can not run CNF Conformance")
+ self.__logger.warning("CNF Conformance exited with errors")
self.stop_time = time.time()
def clean(self):
- for clean_cmd in ['uninstall_cri_tools', 'uninstall_falco',
+ for clean_cmd in ['uninstall_falco',
'cnf_cleanup']:
cmd = ['cnf-testsuite', clean_cmd,
'cnf-config=cnf-testsuite.yml']