mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 16:08:13 +00:00
c7627ee4e1
xUnit (47 new tests, 429 total): - ClusterConfigServiceTests: 25 tests covering all 14 service methods including URL encoding, null guards, and error responses - HaServiceTests: 22 tests covering resources, groups, status, and rules with URI encoding verification (vm:100 → vm%3A100) Pester (187 new tests, 1525 total): - ClusterConfigCmdlets.Tests.ps1: 11 cmdlets tested - HaCmdlets.Tests.ps1: 14 cmdlets tested Integration (ClusterConfig.Integration.Tests.ps1): - Full 2-node cluster lifecycle with -Wait for task completion - Uses root@pam ticket auth for cluster create/join operations - HA group tests skip on PVE 9.0+ (groups migrated to rules) - JArray indexing uses .Item() for PowerShell compatibility Cmdlet improvements: - New-PveCluster, Add-PveClusterConfigNode, Add-PveClusterMember now support -Wait switch to block until task completes (via TaskService) - GetClusterConfig returns JToken to handle array responses on standalone - OutputType updated to PveTask for task-returning cmdlets Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>