fix: WinRM NTLM username normalize and hostname-first targets (0.10.3)

This commit is contained in:
2026-06-20 00:10:52 +10:00
parent 2fe492b06b
commit c8e3eef9d7
8 changed files with 105 additions and 29 deletions
+2 -2
View File
@@ -4,6 +4,6 @@ from app.version import APP_NAME, APP_VERSION, APP_VERSION_LABEL
def test_version_constants():
assert APP_VERSION == "0.10.2"
assert APP_VERSION == "0.10.3"
assert APP_NAME == "Security Alert Center"
assert APP_VERSION_LABEL == "Security Alert Center v.0.10.2"
assert APP_VERSION_LABEL == "Security Alert Center v.0.10.3"
+6
View File
@@ -3,6 +3,12 @@
from unittest.mock import patch
from app.models.ui_settings import UI_SETTINGS_ROW_ID, UiSettings
from app.services.win_admin_settings import normalize_win_admin_user
def test_normalize_win_admin_user():
assert normalize_win_admin_user(r"B26\\papatramp") == r"B26\papatramp"
assert normalize_win_admin_user(r"B26\papatramp") == r"B26\papatramp"
def test_get_win_admin_settings_env_default(jwt_headers, client, monkeypatch):