From edc8fe6cf36613f4a4f64f79c966a00253191185 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 10 Mar 2019 09:17:57 +0100 Subject: Publish Junit files and fix Conformance regex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It fixes Conformance to [Conformance] and add the skips test regex. It now conforms with Kubernetes Certification (see Sunobuoy) Change-Id: Ic25bb72c839810cf41668a3a8b86579a3fd59629 Signed-off-by: Cédric Ollivier (cherry picked from commit fd130c880d4d185153efe3e3e0aa24c95052c320) --- functest_kubernetes/k8stest.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'functest_kubernetes') diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py index 59eb999e..76693e91 100644 --- a/functest_kubernetes/k8stest.py +++ b/functest_kubernetes/k8stest.py @@ -33,6 +33,8 @@ class K8sTesting(testcase.TestCase): def __init__(self, **kwargs): super(K8sTesting, self).__init__(**kwargs) self.cmd = [] + self.res_dir = "/home/opnfv/functest/results/{}".format( + self.case_name) self.result = 0 self.start_time = 0 self.stop_time = 0 @@ -120,7 +122,7 @@ class K8sSmokeTest(K8sTesting): super(K8sSmokeTest, self).__init__(**kwargs) self.cmd = ['e2e.test', '-ginkgo.focus', 'Guestbook.application', '-ginkgo.noColor', '-kubeconfig', self.config, - '--provider', 'local'] + '-provider', 'local', '-report-dir', self.res_dir] class K8sConformanceTest(K8sTesting): @@ -129,6 +131,8 @@ class K8sConformanceTest(K8sTesting): if "case_name" not in kwargs: kwargs.get("case_name", 'k8s_conformance') super(K8sConformanceTest, self).__init__(**kwargs) - self.cmd = ['e2e.test', '-ginkgo.focus', 'Conformance', - '-ginkgo.noColor', '-kubeconfig', self.config, - '--provider', 'local'] + self.cmd = [ + 'e2e.test', '-ginkgo.focus', r'\[Conformance\]', '-ginkgo.noColor', + '-ginkgo.skip', r'Alpha|\[(Disruptive|Feature:[^\]]+|Flaky)\]', + '-kubeconfig', self.config, '-provider', 'local', + '-report-dir', self.res_dir] -- cgit 1.2.3-korg