Fix elasticsearch nodes targeting
diff --git a/cvp_checks/tests/test_stacklight.py b/cvp_checks/tests/test_stacklight.py
index 91ad4ef..76f3796 100644
--- a/cvp_checks/tests/test_stacklight.py
+++ b/cvp_checks/tests/test_stacklight.py
@@ -6,7 +6,7 @@
def test_elasticsearch_cluster(local_salt_client):
salt_output = local_salt_client.cmd(
- 'elasticsearch:client',
+ 'kibana:server',
'pillar.get',
['_param:haproxy_elasticsearch_bind_host'],
expr_form='pillar')
@@ -37,7 +37,7 @@
today = now.strftime("%Y.%m.%d")
active_nodes = utils.get_active_nodes()
salt_output = local_salt_client.cmd(
- 'elasticsearch:client',
+ 'kibana:server',
'pillar.get',
['_param:haproxy_elasticsearch_bind_host'],
expr_form='pillar')
@@ -48,7 +48,7 @@
'"field": "Hostname"}}}}').text
# TODO
# we should check every node in output, not simply # of entries
- assert resp.count('"key"') > len(active_nodes), \
+ assert resp.count('"key"') >= len(active_nodes), \
'Not all nodes are in Elasticsearch. Found {0} keys, ' \
'expected {1}.'.format(resp.count('"key"'), len(active_nodes))