Write route-proxy's test plan entry as the contributed form itself, since its encoder left mesh-sdk

Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
2026-11-02 19:20:18 +01:00
parent a74f9db508
commit f82e0b77b4
@@ -172,7 +172,8 @@ func TestAPlanEntryIsDialledAtTheMachinePortItCarries(t *testing.T) {
{"on another machine, a bare port (influxdb)", "home", "influxdb", "home.internal", 8086, "http://home.internal:8086"},
} {
values, _ := json.Marshal(map[string]any{"name": c.module + ".example.org", "port": c.port})
contributed, err := catalogue.EncodeContributed(catalogue.ContributedForm{At: c.at,
// The form as the seat carries it (version 1): written here, so what the proxy decodes is the shape, not a helper.
contributed, err := json.Marshal(catalogue.ContributedForm{V: catalogue.ContributedVersion, At: c.at,
Each: []catalogue.ContributedOne{{Values: values}}})
if err != nil {
t.Fatalf("%s: %v", c.name, err)