summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test/logging_check_test.py
diff options
context:
space:
mode:
authorLuke Meyer <lmeyer@redhat.com>2017-09-20 21:35:57 -0400
committerLuke Meyer <lmeyer@redhat.com>2017-09-21 13:43:47 -0400
commit9698f76b641b7cc5964d2f4f318ea71702aa2245 (patch)
tree04f9ec59ae00ce8b79c82dd0526051ed6a0a3192 /roles/openshift_health_checker/test/logging_check_test.py
parent4f5839e585a78243eae2d215176047299c52a1eb (diff)
downloadopenshift-9698f76b641b7cc5964d2f4f318ea71702aa2245.tar.gz
openshift-9698f76b641b7cc5964d2f4f318ea71702aa2245.tar.bz2
openshift-9698f76b641b7cc5964d2f4f318ea71702aa2245.tar.xz
openshift-9698f76b641b7cc5964d2f4f318ea71702aa2245.zip
health checks: add diagnostics check
Also, moved is_first_master method into superclass for reuse. And look at oo_first_master and ansible_host instead of masters and ansible_ssh_host.
Diffstat (limited to 'roles/openshift_health_checker/test/logging_check_test.py')
-rw-r--r--roles/openshift_health_checker/test/logging_check_test.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/roles/openshift_health_checker/test/logging_check_test.py b/roles/openshift_health_checker/test/logging_check_test.py
index 1a1c190f6..59c703214 100644
--- a/roles/openshift_health_checker/test/logging_check_test.py
+++ b/roles/openshift_health_checker/test/logging_check_test.py
@@ -98,21 +98,19 @@ def test_oc_failure(problem, expect):
assert expect in str(excinfo)
-groups_with_first_master = dict(masters=['this-host', 'other-host'])
-groups_with_second_master = dict(masters=['other-host', 'this-host'])
-groups_not_a_master = dict(masters=['other-host'])
+groups_with_first_master = dict(oo_first_master=['this-host'])
+groups_not_a_master = dict(oo_first_master=['other-host'], oo_masters=['other-host'])
@pytest.mark.parametrize('groups, logging_deployed, is_active', [
(groups_with_first_master, True, True),
(groups_with_first_master, False, False),
(groups_not_a_master, True, False),
- (groups_with_second_master, True, False),
(groups_not_a_master, True, False),
])
def test_is_active(groups, logging_deployed, is_active):
task_vars = dict(
- ansible_ssh_host='this-host',
+ ansible_host='this-host',
groups=groups,
openshift_hosted_logging_deploy=logging_deployed,
)