feat(worker): supervise VPN connections and recover batched telemetry

This commit is contained in:
DCCONSTRUCTIONS
2026-11-10 01:10:37 +03:00
parent fe5900ff3b
commit ad5a929e06
46 changed files with 2996 additions and 640 deletions
+15
View File
@@ -120,6 +120,21 @@ def test_ready_receiver_is_not_restarted(monkeypatch, tmp_path):
assert manager.reconcile(tmp_path) == "ready"
def test_old_installer_cannot_replace_managed_connection(tmp_path, monkeypatch):
stack, repo, agents = setup(tmp_path, monkeypatch)
tunnel = agents / (manager.TUNNEL + ".plist")
payload = plistlib.dumps(
{
"Label": manager.TUNNEL,
"ProgramArguments": ["python", "-m", "k1link.compute_connections.link"],
}
)
tunnel.write_bytes(payload)
with pytest.raises(ValueError, match="Connection registry owns"):
manager.plan(stack, "worker-test", repo, agents)
assert tunnel.read_bytes() == payload
def test_old_lan_binding_is_reconciled_even_when_receiver_healthy(monkeypatch, tmp_path):
calls = []
bindings = iter((False, True))