aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/test_k8stest.py
diff options
context:
space:
mode:
authorKonrad Djimeli <konraddjimeli@gmail.com>2018-05-20 01:40:21 +0100
committerKonrad Djimeli <konraddjimeli@gmail.com>2018-05-21 12:04:42 +0100
commit816438f37e1a47bb3408c89d982c3fc37f893b64 (patch)
treea06feedb349330faeba896f648e9690bd107e894 /functest_kubernetes/test_k8stest.py
parent9f8e105025763e75273f430448518fea77a49d34 (diff)
Fix functest-k8s logging to log all k8s tests
JIRA: FUNCTEST-967 Change-Id: If4924a5c6d66dcbda48ac5ea80d67fcef11ba40a Signed-off-by: Konrad Djimeli <konraddjimeli@gmail.com>
Diffstat (limited to 'functest_kubernetes/test_k8stest.py')
-rw-r--r--functest_kubernetes/test_k8stest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest_kubernetes/test_k8stest.py b/functest_kubernetes/test_k8stest.py
index 9db14d5a..c9faf35d 100644
--- a/functest_kubernetes/test_k8stest.py
+++ b/functest_kubernetes/test_k8stest.py
@@ -77,8 +77,9 @@ class K8sTests(unittest.TestCase):
attrs = {'stdout.read.return_value': 'Error loading client'}
mock_stdout.configure_mock(**attrs)
mock_popen.return_value = mock_stdout
- self.k8stesting.run_kubetest()
- mock_logger.error.assert_called_with("Error loading client")
+ self.k8stesting.run()
+ mock_logger.exception.assert_called_with(
+ "Error with running kubetest:")
@mock.patch('functest_kubernetes.k8stest.os.path.isfile')
@mock.patch('functest_kubernetes.k8stest.subprocess.Popen')