From d995479c8e985da8c1c355712bcee3c830584c04 Mon Sep 17 00:00:00 2001 From: Clint Branham Date: Thu, 19 Mar 2026 13:31:17 -0500 Subject: [PATCH] fix(test): add -Confirm:\$false to New-PveTemplate call in integration tests ConfirmImpact.High causes an interactive prompt in CI without -Confirm:\$false, leading to a null reference error. Co-Authored-By: Claude Opus 4.6 (1M context) --- tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 b/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 index b69fa4f..5234dd5 100644 --- a/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 +++ b/tests/PSProxmoxVE.Tests/Integration/Integration.Tests.ps1 @@ -608,7 +608,7 @@ Describe 'Integration Tests' -Tag 'Integration' { Stop-PveVm -Node $script:Node -VmId $script:LinuxVmId -Wait | Out-Null } - { New-PveTemplate -Node $script:Node -VmId $script:LinuxVmId -ErrorAction Stop } | + { New-PveTemplate -Node $script:Node -VmId $script:LinuxVmId -Confirm:$false -ErrorAction Stop } | Should -Not -Throw # Verify it appears as a template