fix: WinRM read_timeout must exceed operation_timeout (0.10.2)

This commit is contained in:
2026-06-20 00:06:26 +10:00
parent 154ba3efc2
commit 2fe492b06b
5 changed files with 9 additions and 7 deletions
+4 -2
View File
@@ -60,14 +60,16 @@ def test_winrm_connection(
except ImportError as exc:
raise RuntimeError("pywinrm is not installed on SAC server") from exc
operation_timeout_sec = max(5, timeout_sec)
read_timeout_sec = operation_timeout_sec + 15
endpoint = f"http://{target}:5985/wsman"
try:
session = winrm.Session(
endpoint,
auth=(user, password),
transport="ntlm",
read_timeout_sec=timeout_sec,
operation_timeout_sec=timeout_sec,
read_timeout_sec=read_timeout_sec,
operation_timeout_sec=operation_timeout_sec,
)
result = session.run_cmd("hostname")
except winrm.exceptions.WinRMTransportError as exc:
+1 -1
View File
@@ -1,5 +1,5 @@
"""Единый источник версии SAC (API, health, логи, OpenAPI)."""
APP_NAME = "Security Alert Center"
APP_VERSION = "0.10.1"
APP_VERSION = "0.10.2"
APP_VERSION_LABEL = f"{APP_NAME} v.{APP_VERSION}"
+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.1"
assert APP_VERSION == "0.10.2"
assert APP_NAME == "Security Alert Center"
assert APP_VERSION_LABEL == "Security Alert Center v.0.10.1"
assert APP_VERSION_LABEL == "Security Alert Center v.0.10.2"