Added Fluentd test: td-agent should be running on all nodes
Change-Id: If9735659367a46045405b796be8f001c50d14c65
diff --git a/cvp_checks/tests/test_stacklight.py b/cvp_checks/tests/test_stacklight.py
index 81127d4..75dcf1c 100644
--- a/cvp_checks/tests/test_stacklight.py
+++ b/cvp_checks/tests/test_stacklight.py
@@ -165,3 +165,15 @@
if status is False]
assert result == [], 'Telegraf service is not running ' \
'on following nodes: {}'.format(result)
+
+
+def test_running_fluentd_services(local_salt_client):
+ salt_output = local_salt_client.cmd('fluentd:agent',
+ 'service.status',
+ 'td-agent',
+ expr_form='pillar')
+ result = [{node: status} for node, status
+ in salt_output.items()
+ if status is False]
+ assert result == [], 'Fluentd check failed: td-agent service is not ' \
+ 'running on following nodes:'.format(result)