Add new group collecting mechanism
diff --git a/cvp_checks/tests/test_default_gateway.py b/cvp_checks/tests/test_default_gateway.py
index b6c74c2..cac5328 100644
--- a/cvp_checks/tests/test_default_gateway.py
+++ b/cvp_checks/tests/test_default_gateway.py
@@ -6,13 +6,11 @@
@pytest.mark.parametrize(
"group",
- utils.get_groups(os.path.basename(__file__))
+ utils.node_groups.keys()
)
def test_check_default_gateways(local_salt_client, group):
- if "skipped" in group:
- pytest.skip("skipped in config")
netstat_info = local_salt_client.cmd(
- group, 'cmd.run', ['ip r | sed -n 1p'], expr_form='pcre')
+ "L@"+','.join(utils.node_groups[group]), 'cmd.run', ['ip r | sed -n 1p'], expr_form='compound')
gateways = {}
nodes = netstat_info.keys()