Files
mesh-host/internal/nodegrant/nodegrant_test.go
T
jschoubben 1a6a380507 nodegrant: the node's grant holds the catalog verb module the composer asks (A-461b)
The composer asks the trunk build of another node's module through the seat mesh-catalog's verb module (declared in the manifest); the golden grant lacked its call subject, so the ask hung to the node's bound in every pass and held the integration tests.

Builds: design 47 G-22 A-461b
2026-11-17 09:39:03 +01:00

20 lines
744 B
Go

package nodegrant
import (
"slices"
"testing"
)
// Design 47 G A-461b: the node asks the seat mesh-catalog's verbs entry, module and seat-definitions through the seat's call
// subjects, so its grant holds each; a grant without one makes that call hang until the node's own bound (the verb module was
// declared in the manifest but missing here, which held the node-engine's integration tests for 58 s).
func TestTheNodeGrantHoldsTheCatalogVerbsTheComposerAsks(t *testing.T) {
p := For("it1")
for _, verb := range []string{"entry", "module", "seat-definitions"} {
want := "mesh.seat.mesh-catalog.call." + verb + ".node~it1"
if !slices.Contains(p.Publish, want) {
t.Errorf("the node's grant does not publish to %s", want)
}
}
}