Add a test case for an efi-firmware volume to check for it's type. Signed-off-by: Christian Ludwig --- src/test/run_volume_access_tests.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/run_volume_access_tests.pl b/src/test/run_volume_access_tests.pl index 3448708..72331e5 100755 --- a/src/test/run_volume_access_tests.pl +++ b/src/test/run_volume_access_tests.pl @@ -15,7 +15,7 @@ use PVE::Storage::Plugin; my $storage_cfg = <<'EOF'; dir: dir path /mnt/pve/dir - content vztmpl,snippets,iso,backup,rootdir,images + content vztmpl,snippets,iso,backup,rootdir,images,efi-firmware EOF my $user_cfg = <<'EOF'; @@ -103,6 +103,13 @@ my @tests = ( 'iso' => 1, }, }, + { + volid => 'dir:efi-firmware/custom-uefi.fd', + denied_users => {}, + allowed_types => { + 'efi-firmware' => 1, + }, + }, { volid => 'dir:111/subvol-111-disk-0.subvol', denied_users => { -- 2.34.1