feat(worker): supervise VPN connections and recover batched telemetry
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user