Add live log visibility setting
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user