feat(remote)!: make remote serve WebSocket-only and refuse older clients with CLIENT_OUTDATED

This commit is contained in:
imSp4rky
2026-12-05 09:47:22 -07:00
parent 641623590d
commit 00ad15527c
62 changed files with 657 additions and 2098 deletions
+7 -5
View File
@@ -17,6 +17,8 @@ import time
import pytest
from tests.remote.e2e.channel import open_session
pytestmark = [pytest.mark.live, pytest.mark.slow]
@@ -31,7 +33,7 @@ def wait_titles(http_session, server_url: str, sid: str, timeout: float = 120.0)
body = r.json()
except Exception:
body = {}
if (body.get("details") or {}).get("auth_status") in ("authenticating", "pending_input"):
if (body.get("details") or {}).get("auth_status") == "authenticating":
time.sleep(2.0)
continue
return None
@@ -60,9 +62,10 @@ def test_download_manifest_fetch(http_session, server_url: str, service_case) ->
if not title_input:
pytest.skip(f"{service}: no title/series in fixture")
r = http_session.post(
f"{server_url}/api/session/create",
json={
r = open_session(
http_session,
server_url,
{
"service": service,
"title_id": title_input,
"range_": ["SDR"],
@@ -70,7 +73,6 @@ def test_download_manifest_fetch(http_session, server_url: str, service_case) ->
"quality": [target_height],
"best_available": True,
},
timeout=120,
)
if r.status_code >= 400:
pytest.skip(f"{service}: session create failed {r.status_code}: {r.text[:200]}")