buscompose keeps only the bus's names and shapes; the composer of the user list is the grants part's own (ADR 0593 §1)
Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package buscompose
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.novox.be/novox/mesh-sdk/go/membership"
|
||||
)
|
||||
|
||||
// The names this package keeps for the grants part's composer (mesh-grants internal/buscompose, ADR 0593 §1) agree with
|
||||
// what the runtime reads: the memberships bucket, and a log's stream and subject.
|
||||
func TestTheBusNamesAgree(t *testing.T) {
|
||||
if GrantsMembershipsBucket != membership.GrantsBucket {
|
||||
t.Fatalf("the memberships bucket is %q here and %q in membership", GrantsMembershipsBucket, membership.GrantsBucket)
|
||||
}
|
||||
if MembershipKey("ace", "netcheck") != "ace.netcheck" {
|
||||
t.Fatal("a membership's key is not <node>.<module>")
|
||||
}
|
||||
if LogStreamName("mesh-delivery-builder", "build-log") == "" || LogSubject("mesh-delivery-builder", "build-log") == "" {
|
||||
t.Fatal("a log has no stream or subject")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user