fix(ui): unify connectivity labels and move contour refresh to header

This commit is contained in:
DCCONSTRUCTIONS
2026-09-25 23:24:45 +03:00
parent f3640026cf
commit e2cf3078b6
11 changed files with 92 additions and 31 deletions
+16
View File
@@ -497,3 +497,19 @@ def test_profile_apply_fails_closed_on_wrong_node_and_keeps_old_profile(
assert error.value.status_code == 409
assert WorkerProfileStore(tmp_path / "system").read().revision == 0
assert not WorkerProfileStore(tmp_path / "system").path.exists()
def test_receiver_failure_is_not_reported_as_worker_failure(monkeypatch):
import urllib.error
from k1link.web import system_telemetry_api as api
def unavailable(*args, **kwargs):
raise urllib.error.URLError("receiver down")
monkeypatch.setattr(api.urllib.request, "urlopen", unavailable)
result = api.run_worker_agent_probe(
api._profile_from_compute_contour(default_compute_contour())
)
assert result["error_code"] == "telemetry-receiver-unavailable"
assert result["reachable"] is False and result["raw"] is None