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

Function test_prep_pub

tests/pytests/unit/client/test_init.py:63–84  ·  view source on GitHub ↗
(local_client)

Source from the content-addressed store, hash-verified

61
62
63def test_prep_pub(local_client):
64 result = local_client._prep_pub(
65 tgt="*",
66 fun="test.ping",
67 arg="",
68 tgt_type="glob",
69 ret="",
70 jid="123",
71 timeout=7,
72 )
73 expected = {
74 "arg": "",
75 "cmd": "publish",
76 "fun": "test.ping",
77 "jid": "123",
78 "key": "",
79 "ret": "",
80 "tgt": "*",
81 "tgt_type": "glob",
82 "user": local_client.salt_user,
83 }
84 assert result == expected
85
86
87def test_prep_pub_kwargs(local_client):

Callers

nothing calls this directly

Calls 1

_prep_pubMethod · 0.45

Tested by

no test coverage detected