fix(ui): unify connectivity labels and move contour refresh to header
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user