From a62ba401bef119d72793a607623ab0d8206ce249 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 27 Nov 2023 14:54:46 +0000 Subject: [PATCH] Remove duplicate winrm test (#82124) (#82126) (cherry picked from commit f8a9fd47589ca6d246cdbbb2f8805b56d371b698) --- test/units/plugins/connection/test_winrm.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/units/plugins/connection/test_winrm.py b/test/units/plugins/connection/test_winrm.py index dbc4b4ad1d6..d76b5d0f4eb 100644 --- a/test/units/plugins/connection/test_winrm.py +++ b/test/units/plugins/connection/test_winrm.py @@ -483,26 +483,6 @@ class TestWinRMKerbAuth(object): assert str(e.value) == "winrm connection error: msg" - def test_exec_command_with_timeout(self, monkeypatch): - requests_exc = pytest.importorskip("requests.exceptions") - - pc = PlayContext() - new_stdin = StringIO() - conn = connection_loader.get('winrm', pc, new_stdin) - - mock_proto = MagicMock() - mock_proto.run_command.side_effect = requests_exc.Timeout("msg") - - conn._connected = True - conn._winrm_host = 'hostname' - - monkeypatch.setattr(conn, "_winrm_connect", lambda: mock_proto) - - with pytest.raises(AnsibleConnectionFailure) as e: - conn.exec_command('cmd', in_data=None, sudoable=True) - - assert str(e.value) == "winrm connection error: msg" - def test_connect_failure_auth_401(self, monkeypatch): pc = PlayContext() new_stdin = StringIO()