mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 23:45:07 +00:00
feat(remote)!: make remote serve WebSocket-only and refuse older clients with CLIENT_OUTDATED
This commit is contained in:
@@ -93,7 +93,6 @@ def test_response_type_refreshes_the_server_type():
|
||||
def test_proxy_mode_keeps_the_callers_type():
|
||||
svc = _service("widevine", {"license": "bGlj"})
|
||||
svc.licensing = LicensingMode(Licensor.CLIENT_DEVICE)
|
||||
svc.drain_server_logs = lambda: None
|
||||
track = SimpleNamespace(id="vid", drm=[_PlayReady(), _Widevine()])
|
||||
|
||||
licence = svc.proxy_license(b"chal", track, "playready")
|
||||
@@ -108,7 +107,6 @@ def test_a_refused_relayed_licence_raises_a_click_exception_with_the_server_mess
|
||||
|
||||
svc = _service("widevine", {})
|
||||
svc.licensing = LicensingMode(Licensor.CLIENT_DEVICE)
|
||||
svc.drain_server_logs = lambda: None
|
||||
|
||||
def refuse(endpoint, payload, expect=()):
|
||||
raise RemoteError("Licence request failed: refused", "SERVICE_ERROR")
|
||||
|
||||
Reference in New Issue
Block a user