diff options
author | juanvallejo <jvallejo@redhat.com> | 2017-06-26 17:41:40 -0400 |
---|---|---|
committer | juanvallejo <jvallejo@redhat.com> | 2017-08-01 17:25:40 -0400 |
commit | 04154a21237f9da6ee64bf57097d125b85b99a5f (patch) | |
tree | 1d17e8bceefd45e8da6741813fc136c892b27429 /roles/openshift_health_checker/test/fluentd_test.py | |
parent | 01e48932d615dd17c316c1b9ab00216ab0f3f78d (diff) | |
download | openshift-04154a21237f9da6ee64bf57097d125b85b99a5f.tar.gz openshift-04154a21237f9da6ee64bf57097d125b85b99a5f.tar.bz2 openshift-04154a21237f9da6ee64bf57097d125b85b99a5f.tar.xz openshift-04154a21237f9da6ee64bf57097d125b85b99a5f.zip |
add fluentd logging driver config check
Diffstat (limited to 'roles/openshift_health_checker/test/fluentd_test.py')
-rw-r--r-- | roles/openshift_health_checker/test/fluentd_test.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/roles/openshift_health_checker/test/fluentd_test.py b/roles/openshift_health_checker/test/fluentd_test.py index 9cee57868..a84d89cef 100644 --- a/roles/openshift_health_checker/test/fluentd_test.py +++ b/roles/openshift_health_checker/test/fluentd_test.py @@ -4,14 +4,6 @@ import json from openshift_checks.logging.fluentd import Fluentd -def canned_fluentd(exec_oc=None): - """Create a Fluentd check object with canned exec_oc method""" - check = Fluentd("dummy") # fails if a module is actually invoked - if exec_oc: - check._exec_oc = exec_oc - return check - - def assert_error(error, expect_error): if expect_error: assert error @@ -103,7 +95,7 @@ fluentd_node3_unlabeled = { ), ]) def test_get_fluentd_pods(pods, nodes, expect_error): - check = canned_fluentd(exec_oc=lambda cmd, args: json.dumps(dict(items=nodes))) - + check = Fluentd() + check.exec_oc = lambda ns, cmd, args: json.dumps(dict(items=nodes)) error = check.check_fluentd(pods) assert_error(error, expect_error) |