public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Kaiyang Wu <wukaiyang2003@gmail.com>
To: pve-devel@lists.proxmox.com
Cc: Kaiyang Wu <wukaiyang@loongfans.cn>
Subject: [PATCH installer] auto: update Btrfs/ZFS RAID level error messages in tests
Date: Sun,  7 Jun 2026 14:49:20 +0800	[thread overview]
Message-ID: <20260607064954.119172-2-wukaiyang@loongfans.cn> (raw)

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




                 reply	other threads:[~2026-06-07  6:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260607064954.119172-2-wukaiyang@loongfans.cn \
    --to=wukaiyang2003@gmail.com \
    --cc=pve-devel@lists.proxmox.com \
    --cc=wukaiyang@loongfans.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal