aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/test_k8stest.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-06-27 11:31:48 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-06-27 19:40:32 +0200
commit90b7a6d3c33057dcf50951e81c86f3c7bb426d9d (patch)
treeba39865436886f73809b3fa68e64987762065623 /functest_kubernetes/test_k8stest.py
parent0823cd9cbfce16ad20faafc70e5690b9bd9bfb0d (diff)
Disable log dump
It avoids dumping logs at the end which requires gcloud configured (CI). Then it partially reverts "Keep kubernetes sources" [1]. It now dumps e2e.test output in e2e.log as sonobuoy [2]. [1] https://gerrit.opnfv.org/gerrit/68106 [2] https://raw.githubusercontent.com/cncf/k8s-conformance/master/v1.15/kubeadm/e2e.log Change-Id: I400e1cf92a8540eba3d40db1ed4237628921efe6 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d1d3feacdbf061cf4115ceeadcb71d2142971757)
Diffstat (limited to 'functest_kubernetes/test_k8stest.py')
-rw-r--r--functest_kubernetes/test_k8stest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest_kubernetes/test_k8stest.py b/functest_kubernetes/test_k8stest.py
index b03bb6dc..a94fdf88 100644
--- a/functest_kubernetes/test_k8stest.py
+++ b/functest_kubernetes/test_k8stest.py
@@ -64,6 +64,7 @@ class K8sTests(unittest.TestCase):
mock_logger.exception.assert_called_with(
"Error with running kubetest:")
+ @mock.patch('six.moves.builtins.open', mock.mock_open())
@mock.patch('functest_kubernetes.k8stest.os.path.isfile')
@mock.patch('functest_kubernetes.k8stest.subprocess.Popen')
def test_run(self, mock_open, mock_isfile):