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
@@ -6,12 +6,14 @@ import time
import pytest
from tests.remote.e2e.channel import open_session
pytestmark = [pytest.mark.live, pytest.mark.slow]
def create_session(http_session, server_url: str, service: str, conf: dict) -> str:
payload = {"service": service, "title_id": conf["title_url"]}
r = http_session.post(f"{server_url}/api/session/create", json=payload, timeout=120)
r = open_session(http_session, server_url, payload)
if r.status_code >= 400:
pytest.skip(f"Auth/setup not available for {service}: {r.status_code} {r.text[:200]}")
body = r.json()
@@ -37,7 +39,7 @@ def wait_for_titles(http_session, server_url: str, sid: str, timeout: float = 12
except Exception:
body = {}
auth_status = (body.get("details") or {}).get("auth_status")
if auth_status in ("authenticating", "pending_input"):
if auth_status == "authenticating":
time.sleep(2.0)
continue
return r.status_code, r.json() if r.text else {}