aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-03-10 09:17:57 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-03-10 09:21:59 +0100
commitfd130c880d4d185153efe3e3e0aa24c95052c320 (patch)
treebb304b6b9868cbbac7e3795d470ab853e403b986
parent32c8765de95bc1d707f09f913641df82cd8c18a7 (diff)
Publish Junit files and fix Conformance regex
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 <cedric.ollivier@orange.com>
-rw-r--r--functest_kubernetes/k8stest.py12
1 files changed, 8 insertions, 4 deletions
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]