From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 2E17D1FF09B for ; Mon, 28 Sep 2026 07:48:55 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id E5AB02170E; Mon, 28 Sep 2026 07:48:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1790574486; bh=9ukuQxJHSNHjv9+IOOpTmPXNB7vnysCQNyeyZNAmcKw=; h=Date:From:To:Subject:References:In-Reply-To:From; b=HQY2Y52ZF/oqo0VHHvW5h1dwOcBtgc9y78S796Ln590AX5jRgYnx0nLX+jG0aIVaJ GJ5M5sMps8al0bGaQOf6wOQzKG1YqceU44+Xlww4MbodSz8O34qPwcQ85+xetr1zyy vKqczNJPdVXS+3sUOj1dPvU5hxk5EgRjmPrDcXTG7K4RSZz8aG74Z2ajX9uy92dx5/ FXLmJASmHGtbkuuWf2Ya+RPAMTg0VV8hqAav98xyF7jwJRHU7ww3Ae9vdPhE2TtHwU lrptiadsW8D55Cqdtxi2G2z0wJeWIeeKvSjyXATCyRbMIGAsBE60BYngk84dgnG7Bq LD+k9T0AmgOOQ== Date: Mon, 28 Sep 2026 07:48:05 +0200 From: Christian Ludwig To: Subject: [PATCH v2 pve-storage 6/16] test: list volumes: cover efi-firmware volumes Message-ID: <9bc12cf44b8fb79ec2eba4f4eb836374dd63965e.1790337423.git@genua.de> References: MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [192.168.217.185] X-ClientProxiedBy: kch1-mta08.win.genua.de (10.208.16.108) To kch1-mta07.win.genua.de (10.208.16.107) Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-SPAM-LEVEL: Spam detection results: 0 AWL 0.097 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record UNPARSEABLE_RELAY 0.001 Informational: message has unparseable relay lines Message-ID-Hash: 7FA3XN5SV67MS7ZWHMUF733FL5HKOZIG X-Message-ID-Hash: 7FA3XN5SV67MS7ZWHMUF733FL5HKOZIG X-MailFrom: christian_ludwig@genua.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Check that files in efi-firmware/ are listed as efi-firmware volumes, regardless of their extension. Signed-off-by: Christian Ludwig --- src/test/list_volumes_test.pm | 51 ++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/src/test/list_volumes_test.pm b/src/test/list_volumes_test.pm index 0876902..a1e98d1 100644 --- a/src/test/list_volumes_test.pm +++ b/src/test/list_volumes_test.pm @@ -72,6 +72,7 @@ my $scfg = { 'images' => 1, 'snippets' => 1, 'backup' => 1, + 'efi-firmware' => 1, }, }; @@ -462,6 +463,54 @@ my @tests = ( ], expected => [], # returns empty list }, + { + description => 'VMID: none, efi-firmware .fd files listed', + vmid => undef, + files => [ + "$storage_dir/efi-firmware/custom.fd", + "$storage_dir/efi-firmware/vendor-bios-v2.fd", + ], + expected => [ + { + 'content' => 'efi-firmware', + 'ctime' => DEFAULT_CTIME, + 'format' => 'raw', + 'size' => DEFAULT_SIZE, + 'volid' => 'local:efi-firmware/custom.fd', + }, + { + 'content' => 'efi-firmware', + 'ctime' => DEFAULT_CTIME, + 'format' => 'raw', + 'size' => DEFAULT_SIZE, + 'volid' => 'local:efi-firmware/vendor-bios-v2.fd', + }, + ], + }, + { + description => 'VMID: none, all efi-firmware files listed regardless of extension', + vmid => undef, + files => [ + "$storage_dir/efi-firmware/custom.fd", + "$storage_dir/efi-firmware/custom.iso", + ], + expected => [ + { + 'content' => 'efi-firmware', + 'ctime' => DEFAULT_CTIME, + 'format' => 'raw', + 'size' => DEFAULT_SIZE, + 'volid' => 'local:efi-firmware/custom.fd', + }, + { + 'content' => 'efi-firmware', + 'ctime' => DEFAULT_CTIME, + 'format' => 'raw', + 'size' => DEFAULT_SIZE, + 'volid' => 'local:efi-firmware/custom.iso', + }, + ], + }, ); # provide static vmlist for tests @@ -520,7 +569,7 @@ plan tests => $plan + 1; { my $sid = 'local'; - my $types = ['rootdir', 'images', 'vztmpl', 'iso', 'backup', 'snippets']; + my $types = ['rootdir', 'images', 'vztmpl', 'iso', 'backup', 'snippets', 'efi-firmware']; my @suffixes = ('qcow2', 'raw', 'vmdk', 'vhdx'); # run through test cases -- 2.34.1