MCPcopy
hub / github.com/saltstack/salt / test_resolve_nodegroup_error

Function test_resolve_nodegroup_error

tests/pytests/unit/client/test_init.py:52–60  ·  view source on GitHub ↗
(master_opts)

Source from the content-addressed store, hash-verified

50
51
52def test_resolve_nodegroup_error(master_opts):
53 master_opts["nodegroups"] = {
54 "group1": "L@spongebob,patrick",
55 "group2": "G@os:squidward",
56 "group3": "G@os:plankton and N@group1",
57 }
58 local_client = salt.client.get_local_client(mopts=master_opts)
59 with pytest.raises(SaltInvocationError):
60 local_client._resolve_nodegroup("missing")
61
62
63def test_prep_pub(local_client):

Callers

nothing calls this directly

Calls 1

_resolve_nodegroupMethod · 0.80

Tested by

no test coverage detected