Add new group collecting mechanism
diff --git a/cvp_checks/tests/test_services.py b/cvp_checks/tests/test_services.py
index 7f04578..be0bc16 100644
--- a/cvp_checks/tests/test_services.py
+++ b/cvp_checks/tests/test_services.py
@@ -6,12 +6,10 @@
@pytest.mark.parametrize(
"group",
- utils.get_groups(os.path.basename(__file__))
+ utils.node_groups.keys()
)
def test_check_services(local_salt_client, group):
- if "skipped" in group:
- pytest.skip("skipped in config")
- output = local_salt_client.cmd(group, 'service.get_all', expr_form='pcre')
+ output = local_salt_client.cmd("L@"+','.join(utils.node_groups[group]), 'service.get_all', expr_form='compound')
if len(output.keys()) < 2:
pytest.skip("Nothing to compare - only 1 node")