Complete URBM product rename
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/backupper-unraid/backupper/internal/model"
|
||||
"git.casaderoll.de/michael/urbm/internal/model"
|
||||
)
|
||||
|
||||
type SecretGetter interface{ Get(string) (string, error) }
|
||||
@@ -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", "URBM", "-s", title, "-d", message, "-i", importance, "-l", "/Tools/Backupper"}
|
||||
args := []string{"-e", "URBM", "-s", title, "-d", message, "-i", importance, "-l", "/Tools/URBM"}
|
||||
if s.RunCommand != nil {
|
||||
return s.RunCommand(ctx, path, args...)
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/backupper-unraid/backupper/internal/model"
|
||||
"git.casaderoll.de/michael/urbm/internal/model"
|
||||
)
|
||||
|
||||
type testSecrets map[string]string
|
||||
@@ -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", "URBM", "-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/URBM"}
|
||||
if !reflect.DeepEqual(args, want) {
|
||||
t.Fatalf("arguments = %#v, want %#v", args, want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user