Release URBM 2026.06.15.r009
This commit is contained in:
@@ -79,3 +79,15 @@ func TestRetentionRequiresAtLeastOneRule(t *testing.T) {
|
||||
t.Fatalf("age retention rejected: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBackupCPUCoresRange(t *testing.T) {
|
||||
job := Job{SchemaVersion: 1, ID: "job", Name: "Share", Type: JobShare, RepositoryID: "repo", Sources: []Source{{Path: "/mnt/user/data"}}, Consistency: Consistency{Mode: "live"}, Compression: "auto", Retention: Retention{KeepWithinDays: 30}}
|
||||
job.CPUCores = 2
|
||||
if err := ValidateJob(job); err != nil {
|
||||
t.Fatalf("valid CPU limit rejected: %v", err)
|
||||
}
|
||||
job.CPUCores = 257
|
||||
if err := ValidateJob(job); err == nil {
|
||||
t.Fatal("excessive CPU limit accepted")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user