mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 01:30:20 +00:00
Add changelog, comment mock in test
This commit is contained in:
parent
c0c8241bb4
commit
3cf602cd8a
2 changed files with 3 additions and 0 deletions
1
changelog/62152.fixed
Normal file
1
changelog/62152.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Make sure lingering PAexec-*.exe files in the Windows directory are cleaned up
|
|
@ -210,6 +210,8 @@ def test_run_psexec_command_cleanup_lingering_paexec():
|
|||
pytest.importorskip("pypsexec.client", reason="Requires PyPsExec")
|
||||
mock_psexec = patch("salt.utils.cloud.PsExecClient", autospec=True)
|
||||
mock_scmr = patch("salt.utils.cloud.ScmrService", autospec=True)
|
||||
# We're mocking 'remove_service' because all we care about is the cleanup
|
||||
# command
|
||||
mock_rm_svc = patch("salt.utils.cloud.Client.remove_service", autospec=True)
|
||||
with mock_psexec as mock_client, mock_scmr, mock_rm_svc:
|
||||
mock_client.return_value.session = MagicMock(username="Gary")
|
||||
|
|
Loading…
Add table
Reference in a new issue