Enhancing test_ntp_sync
diff --git a/cvp_checks/tests/test_ntp_sync.py b/cvp_checks/tests/test_ntp_sync.py
index 72ca43e..10eb130 100644
--- a/cvp_checks/tests/test_ntp_sync.py
+++ b/cvp_checks/tests/test_ntp_sync.py
@@ -1,21 +1,17 @@
-import pytest
-import os
from cvp_checks import utils
-@pytest.mark.parametrize(
- "node",
- utils.get_active_nodes(utils.get_configuration(__file__))
-)
-def test_ntp_sync(local_salt_client, node):
+def test_ntp_sync(local_salt_client):
config = utils.get_configuration(__file__)
fail = {}
-
saltmaster_time = int(local_salt_client.cmd(
- os.uname()[1] + '*', 'cmd.run', ['date +%s']).values()[0])
+ 'salt:master',
+ 'cmd.run',
+ ['date +%s'],
+ expr_form='pillar').values()[0])
nodes_time = local_salt_client.cmd(
- node, 'cmd.run', ['date +%s'], expr_form='pcre')
+ '*', 'cmd.run', ['date +%s'])
for node, time in nodes_time.iteritems():
if (int(time) - saltmaster_time) > config["time_deviation"] or \