| 85 | |
| 86 | |
| 87 | def 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 | |
| 115 | def test_prep_pub_start_event_kwarg_propagates(local_client): |