test: add local 2x2 route topology

This commit is contained in:
2026-07-23 03:14:16 +00:00
parent 10e803eaee
commit a66269cb69
27 changed files with 775 additions and 7 deletions
+6 -1
View File
@@ -55,7 +55,12 @@ def probe_qbittorrent(
method="POST",
headers={"Content-Type": "application/x-www-form-urlencoded"},
)
if _read(opener.open(login, timeout=timeout)).strip() != "Ok.":
login_response = opener.open(login, timeout=timeout)
login_status = getattr(login_response, "status", 200)
login_body = _read(login_response).strip()
if login_body != "Ok." and not (
login_status == 204 and not login_body
):
raise PermissionError("qBittorrent authentication failed")
version = _text_get(opener, config.endpoint, "/api/v2/app/version", timeout)
api_version = _text_get(