Read the declaration a served-key test checks from the composition, since the plan verb is gone (issue 1945)
mesh/delivery delivering: 0 machine step(s) passed
mesh/delivery-group group feat/r6 merged: every member is merged
mesh/check checking 9c38aed78905 on bdb8193456e1 | novox/mesh-controller#457 in group feat/r6

This commit is contained in:
2026-10-25 00:06:06 +02:00
parent a3f1d0460d
commit 9c38aed789
@@ -9,6 +9,7 @@ import (
"testing"
"git.novox.be/novox/mesh-sdk/go/catalogue"
"git.novox.be/novox/mesh-sdk/go/compose"
"github.com/novox/mesh-controller/internal/broker"
)
@@ -212,8 +213,12 @@ func TestAServedKeyIsRefusedThroughAVerb(t *testing.T) {
refused("a setting a trusted file asks for, through the verb", throughVerb(t, "settings", map[string]any{
"module": "power", "node": "anchor", "values": `{"lid":"ignore","x":0}`}))
// And `trusted` is the catalogue's word: it never reaches the machine, whose engine parses strictly.
plan := printed(t, func() error { return atTheTerminal(t, "plan", "anchor", "--json") })
if strings.Contains(plan, `"trusted"`) {
declared, _, err := composeQuestion(ctx, open, "anchor", compose.Reading, false)
if err != nil {
t.Fatal(err)
}
body, _ := json.Marshal(declared.Resources)
if strings.Contains(string(body), `"trusted"`) {
t.Fatal("the declaration carries the catalogue's `trusted`")
}
}