(local_client)
| 61 | |
| 62 | |
| 63 | def 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 | |
| 87 | def test_prep_pub_kwargs(local_client): |