mesh-mail's mail-notifier needs a list of node seats, as the controller reads it (issue 800)

This commit is contained in:
jochen
2026-10-15 17:34:00 +02:00
parent dc89995d96
commit 89046e6613
2 changed files with 3 additions and 3 deletions
@@ -18,7 +18,7 @@ type seat struct {
Name string `json:"name"`
Scope string `json:"scope"`
Serves []string `json:"serves"`
Needs string `json:"needs"`
Needs []string `json:"needs"`
}
type manifest struct {
@@ -115,7 +115,7 @@ func TestTheManifestSaysWhatTheCodeDoes(t *testing.T) {
wantSeats := []seat{
{Name: "mail-store", Scope: "mesh", Serves: []string{"accounts", "search", "read", "send"}},
{Name: "mail-webclient", Scope: "mesh", Serves: []string{"open", "status"}},
{Name: "mail-notifier", Scope: "node", Serves: []string{"status"}, Needs: "node-notifier"},
{Name: "mail-notifier", Scope: "node", Serves: []string{"status"}, Needs: []string{"node-notifier"}},
}
if !reflect.DeepEqual(m.Seats, wantSeats) {
t.Fatalf("seats %+v, want %+v", m.Seats, wantSeats)
+1 -1
View File
@@ -16,7 +16,7 @@
{
"name": "mail-notifier",
"scope": "node",
"needs": "node-notifier",
"needs": ["node-notifier"],
"serves": ["status"]
}
],