Keep B2 client fixes and move VPS implementation to its standalone repository

This commit is contained in:
DCCONSTRUCTIONS
2026-09-29 12:41:21 +03:00
parent 03d44d0fb1
commit 6dd652f71e
85 changed files with 2201 additions and 9299 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Pinned public protocol vectors replace imports of the extracted VPS server."""
import hashlib
import json
from pathlib import Path
def test_client_codecs_match_the_qualified_server_contract():
root = Path(__file__).resolve().parents[1]
contract = json.loads((root / "tests/fixtures/arnavi_vps/client-v1.json").read_text())
assert contract["schema"] == "nodedc.arnavi-client-contract/v1"
assert contract["synthetic_only"] is True
for server_name, digest in contract["codec_sha256"].items():
name = "internal.py" if server_name == "arnavi.py" else server_name
path = root / "src/k1link/device_plugins/arnavi_b2" / name
assert hashlib.sha256(path.read_bytes()).hexdigest() == digest