(master_opts, val, expected)
| 40 | ), |
| 41 | ) |
| 42 | def 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 | |
| 52 | def test_resolve_nodegroup_error(master_opts): |
nothing calls this directly
no test coverage detected