mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-22 02:36:37 +00:00
fix: backup job creation requires vmid or -All, fix Enabled default
- Integration test: add -All to New-PveBackupJob call — PVE API requires either vmid or all when creating a backup job - Fix New-PveBackupJob Enabled logic: jobs are enabled by default unless user explicitly passes -Enabled:$false (was broken because SwitchParameter default=true doesn't set IsPresent) - Fix XML doc cref warning in NetworkService after RequireSdn removal Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1443,7 +1443,7 @@ Describe 'Integration Tests' -Tag 'Integration' {
|
||||
Context 'Backup Jobs' {
|
||||
It 'Should create a backup job' {
|
||||
Skip-IfNoTarget
|
||||
{ New-PveBackupJob -Schedule 'sat 03:00' -Storage $script:Storage -Mode snapshot -Comment 'pester-test-backup' -ErrorAction Stop } | Should -Not -Throw
|
||||
{ New-PveBackupJob -Schedule 'sat 03:00' -Storage $script:Storage -Mode snapshot -All -Comment 'pester-test-backup' -ErrorAction Stop } | Should -Not -Throw
|
||||
}
|
||||
|
||||
It 'Should list backup jobs and find the test job' {
|
||||
|
||||
Reference in New Issue
Block a user