From b8bbf9c79fd82033c228717ec56cf00d5e127baf Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 7 Oct 2026 18:53:21 +0200 Subject: [PATCH] Hold the network statement's field names on the controller's side (hq ADR 0241) --- internal/link/protocol_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/link/protocol_test.go b/internal/link/protocol_test.go index 4f8a412..cc2120a 100644 --- a/internal/link/protocol_test.go +++ b/internal/link/protocol_test.go @@ -33,6 +33,13 @@ func TestTheWireFormatIsExactlyTheseFieldNames(t *testing.T) { []string{"module", "resource", "kind", "target", "state", "reason", "since", "streak", "restarts", "check", "needs"}}, {HealthSaid{Node: "n"}, []string{"node", "health"}}, + // novox/hq ADR 0241: the machine's own networking, beside its resources. + {Health{Contract: ReadinessContract, Resources: []ResourceHealth{}, Network: &NetworkHealth{State: "unhealthy", + Parts: []NetworkPart{}}}, []string{"contract", "at", "resources", "network"}}, + {NetworkHealth{State: "unhealthy", Parts: []NetworkPart{}}, []string{"state", "since", "parts"}}, + {NetworkPart{Part: "resolv-conf", State: "unhealthy", Reason: "r", Said: "s", Writer: "w", Owner: "o", + Toward: []string{"hub"}, Streak: 2}, []string{"part", "state", "reason", "said", "writer", "owner", "toward", + "since", "streak"}}, } { raw, err := json.Marshal(c.value) if err != nil {