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
20 lines
744 B
Go
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)
|
|
}
|
|
}
|
|
}
|