diff --git a/internal/inventory/people_test.go b/internal/inventory/people_test.go index 1085d57..a3a4ac6 100644 --- a/internal/inventory/people_test.go +++ b/internal/inventory/people_test.go @@ -42,8 +42,11 @@ func TestAPersonMayCallToolsAndNothingElse(t *testing.T) { if err != nil { t.Fatal(err) } - if len(perms.Publish) != 1 || perms.Publish[0] != "mesh.mod.mesh-catalog.tool.catalog_tools" { - t.Errorf("ada may publish %v, which should be the one tool and nothing else", perms.Publish) + // The one tool, both ways it is addressed (novox/hq ADR 0159): to whichever instance + // answers, and to the instance on one machine. Nothing else. + if len(perms.Publish) != 2 || perms.Publish[0] != "mesh.mod.mesh-catalog.tool.catalog_tools" || + perms.Publish[1] != "mesh.mod.mesh-catalog.tool.catalog_tools.*" { + t.Errorf("ada may publish %v, which should be the one tool, both ways addressed, and nothing else", perms.Publish) } for _, s := range perms.Publish { if strings.HasPrefix(s, "mesh.control") || strings.HasPrefix(s, "mesh.node") ||