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

Function test_prep_pub_kwargs

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

Source from the content-addressed store, hash-verified

85
86
87def test_prep_pub_kwargs(local_client):
88 result = local_client._prep_pub(
89 tgt="*",
90 fun="test.ping",
91 arg="",
92 tgt_type="glob",
93 ret="",
94 jid="123",
95 timeout=7,
96 some_kwarg="spongebob",
97 )
98 expected = {
99 "arg": "",
100 "cmd": "publish",
101 "fun": "test.ping",
102 "jid": "123",
103 "key": "",
104 "ret": "",
105 "tgt": "*",
106 "tgt_type": "glob",
107 "user": local_client.salt_user,
108 "kwargs": {
109 "some_kwarg": "spongebob",
110 },
111 }
112 assert result == expected
113
114
115def test_prep_pub_start_event_kwarg_propagates(local_client):

Callers

nothing calls this directly

Calls 1

_prep_pubMethod · 0.45

Tested by

no test coverage detected