mesh-mail's mail-notifier needs a list of node seats, as the controller reads it (issue 800)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{
|
||||
"name": "mail-notifier",
|
||||
"scope": "node",
|
||||
"needs": "node-notifier",
|
||||
"needs": ["node-notifier"],
|
||||
"serves": ["status"]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user