* [PATCH installer] auto: update Btrfs/ZFS RAID level error messages in tests
@ 2026-06-07 6:49 Kaiyang Wu
0 siblings, 0 replies; only message in thread
From: Kaiyang Wu @ 2026-06-07 6:49 UTC (permalink / raw)
To: pve-devel; +Cc: Kaiyang Wu
proxmox-installer-types now enforces minimum disk count for ZFS/Btrfs
RAID levels, and it now bails the error messages earlier. Update the
error messages to reflect the changes and pass the tests.
Link: https://git.proxmox.com/?p=proxmox.git;a=commitdiff;h=c34a7ce4b7c7a94279d83455d2b3abe29bfeb630
Signed-off-by: Kaiyang Wu <wukaiyang@loongfans.cn>
---
.../resources/parse_answer_fail/btrfs_raid_single_disk.json | 2 +-
.../tests/resources/parse_answer_fail/zfs_raid_single_disk.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/proxmox-auto-installer/tests/resources/parse_answer_fail/btrfs_raid_single_disk.json b/proxmox-auto-installer/tests/resources/parse_answer_fail/btrfs_raid_single_disk.json
index 957cb49..9aa1317 100644
--- a/proxmox-auto-installer/tests/resources/parse_answer_fail/btrfs_raid_single_disk.json
+++ b/proxmox-auto-installer/tests/resources/parse_answer_fail/btrfs_raid_single_disk.json
@@ -1,3 +1,3 @@
{
- "error": "BTRFS (RAID1): need at least 2 disks"
+ "error": "Btrfs RAID1 needs at least 2 disks, got 1"
}
diff --git a/proxmox-auto-installer/tests/resources/parse_answer_fail/zfs_raid_single_disk.json b/proxmox-auto-installer/tests/resources/parse_answer_fail/zfs_raid_single_disk.json
index 41c99d8..28d7b2a 100644
--- a/proxmox-auto-installer/tests/resources/parse_answer_fail/zfs_raid_single_disk.json
+++ b/proxmox-auto-installer/tests/resources/parse_answer_fail/zfs_raid_single_disk.json
@@ -1,3 +1,3 @@
{
- "error": "ZFS (RAID10): need at least 4 disks"
+ "error": "ZFS RAID10 needs at least 4 disks, got 1"
}
--
2.52.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-07 6:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-07 6:49 [PATCH installer] auto: update Btrfs/ZFS RAID level error messages in tests Kaiyang Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox