From b6a9cc90b64b488fbabd95b0dbb3b9b7d72b57f9 Mon Sep 17 00:00:00 2001 From: Shane Lee Date: Thu, 25 Apr 2024 09:04:05 -0600 Subject: [PATCH] Remove test for 57591 since N/A --- tests/pytests/unit/utils/win_lgpo/test_netsh.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/pytests/unit/utils/win_lgpo/test_netsh.py b/tests/pytests/unit/utils/win_lgpo/test_netsh.py index f6785d498ff..4f74e1dc1c6 100644 --- a/tests/pytests/unit/utils/win_lgpo/test_netsh.py +++ b/tests/pytests/unit/utils/win_lgpo/test_netsh.py @@ -2,7 +2,6 @@ import pytest import salt.utils.win_lgpo_netsh as win_lgpo_netsh from salt.exceptions import CommandExecutionError -from tests.support.mock import patch pytestmark = [ pytest.mark.windows_whitelisted, @@ -26,18 +25,6 @@ def test_get_settings_firewallpolicy_lgpo(): assert "Outbound" in ret -def test_get_settings_firewallpolicy_lgpo_issue_57591(): - """ - Should not stacktrace when the hostname contains unicode characters - """ - with patch.object(win_lgpo_netsh, "__hostname__", return_value="kомпьютер"): - ret = win_lgpo_netsh.get_settings( - profile="domain", section="firewallpolicy", store="lgpo" - ) - assert "Inbound" in ret - assert "Outbound" in ret - - def test_get_settings_logging_local(): ret = win_lgpo_netsh.get_settings( profile="domain", section="logging", store="local"