Complete URBM product rename

This commit is contained in:
Mikei386
2026-06-14 23:12:39 +02:00
parent 145e04153e
commit 4e9b6a10f3
35 changed files with 253 additions and 181 deletions
+2 -2
View File
@@ -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...)
}
+2 -2
View File
@@ -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)
}