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

Function test_resolve_nodegroup

tests/pytests/unit/client/test_init.py:42–49  ·  view source on GitHub ↗
(master_opts, val, expected)

Source from the content-addressed store, hash-verified

40 ),
41)
42def test_resolve_nodegroup(master_opts, val, expected):
43 master_opts["nodegroups"] = {
44 "group1": "L@spongebob,patrick",
45 "group2": "G@os:squidward",
46 "group3": "G@os:plankton and N@group1",
47 }
48 local_client = salt.client.get_local_client(mopts=master_opts)
49 assert local_client._resolve_nodegroup(val) == expected
50
51
52def test_resolve_nodegroup_error(master_opts):

Callers

nothing calls this directly

Calls 1

_resolve_nodegroupMethod · 0.80

Tested by

no test coverage detected