Rename visible product to URBM
This commit is contained in:
@@ -39,7 +39,7 @@ func (s *Sender) Send(ctx context.Context, target model.NotificationTarget, titl
|
||||
if path == "" {
|
||||
path = "/usr/local/emhttp/webGui/scripts/notify"
|
||||
}
|
||||
args := []string{"-e", "Backupper", "-s", title, "-d", message, "-i", importance, "-l", "/Tools/Backupper"}
|
||||
args := []string{"-e", "URBM", "-s", title, "-d", message, "-i", importance, "-l", "/Tools/Backupper"}
|
||||
if s.RunCommand != nil {
|
||||
return s.RunCommand(ctx, path, args...)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func TestSendUnraid(t *testing.T) {
|
||||
if command != "/usr/local/emhttp/webGui/scripts/notify" {
|
||||
t.Fatalf("unexpected command %q", command)
|
||||
}
|
||||
want := []string{"-e", "Backupper", "-s", "Backup warning", "-d", "completed with warnings", "-i", "warning", "-l", "/Tools/Backupper"}
|
||||
want := []string{"-e", "URBM", "-s", "Backup warning", "-d", "completed with warnings", "-i", "warning", "-l", "/Tools/Backupper"}
|
||||
if !reflect.DeepEqual(args, want) {
|
||||
t.Fatalf("arguments = %#v, want %#v", args, want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user