Skip to content

Commit

Permalink
Remove test for 57591 since N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
twangboy authored and s0undt3ch committed May 14, 2024
1 parent 974dacc commit b6a9cc9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/pytests/unit/utils/win_lgpo/test_netsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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,
Expand All @@ -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"
Expand Down

0 comments on commit b6a9cc9

Please sign in to comment.