Add live log visibility setting

This commit is contained in:
Mikei386
2026-06-14 22:30:03 +02:00
parent cf8f64739e
commit 82d00bd116
8 changed files with 19 additions and 7 deletions
+3
View File
@@ -4,6 +4,9 @@ import "testing"
func TestValidateConfig(t *testing.T) {
c := DefaultConfig()
if c.Settings.ShowLiveLog {
t.Fatal("live log must be hidden by default")
}
c.Repositories = append(c.Repositories, Repository{SchemaVersion: 1, ID: "repo", Name: "Local", Type: RepositoryLocal, Location: "/tmp/repo", PasswordRef: "password"})
c.Jobs = append(c.Jobs, Job{SchemaVersion: 1, ID: "job", Name: "Share", Type: JobShare, Enabled: true, RepositoryID: "repo", Sources: []Source{{Path: "/mnt/user/data"}}, Schedule: Schedule{Cron: "0 2 * * *"}, Consistency: Consistency{Mode: "live"}, Compression: "auto", Retention: Retention{Daily: 7, Weekly: 4, Monthly: 12}, ShutdownSecs: 120})
if err := ValidateConfig(c); err != nil {