mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-09-03 10:48:05 +00:00
fix(test): remove mandatory-param invocation tests that hang PS 5.1
PS 5.1 prompts interactively for mandatory parameters instead of throwing, causing CI to hang indefinitely. Replace invocation-based tests with attribute-based IsMandatory checks where duplicates exist, or convert to attribute checks where they don't. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -56,23 +56,6 @@ Describe 'Send-PveIso' {
|
||||
$isMandatory | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It 'Should throw when Node is omitted' {
|
||||
if (-not $script:CmdExists) { Set-ItResult -Skipped -Because 'Not yet compiled'; return }
|
||||
{ Send-PveIso -Storage 'local' -Path '/tmp/test.iso' -ErrorAction Stop } |
|
||||
Should -Throw
|
||||
}
|
||||
|
||||
It 'Should throw when Storage is omitted' {
|
||||
if (-not $script:CmdExists) { Set-ItResult -Skipped -Because 'Not yet compiled'; return }
|
||||
{ Send-PveIso -Node 'pve-node1' -Path '/tmp/test.iso' -ErrorAction Stop } |
|
||||
Should -Throw
|
||||
}
|
||||
|
||||
It 'Should throw when Path is omitted' {
|
||||
if (-not $script:CmdExists) { Set-ItResult -Skipped -Because 'Not yet compiled'; return }
|
||||
{ Send-PveIso -Node 'pve-node1' -Storage 'local' -ErrorAction Stop } |
|
||||
Should -Throw
|
||||
}
|
||||
}
|
||||
|
||||
Context 'ChecksumAlgorithm ValidateSet' {
|
||||
|
||||
Reference in New Issue
Block a user