Tests whether when running `config_to_command` it will correctly fail with an error message that a volume cannot be used if the underlying storage does not support its content type.
Signed-off-by: Daniel Kral <d.k...@proxmox.com> --- changes since v1: - no changes except removing unrelated diff test/cfg2cmd/unsupported-storage-content-type.conf | 3 +++ test/run_config2command_tests.pl | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 test/cfg2cmd/unsupported-storage-content-type.conf diff --git a/test/cfg2cmd/unsupported-storage-content-type.conf b/test/cfg2cmd/unsupported-storage-content-type.conf new file mode 100644 index 00000000..e33165a8 --- /dev/null +++ b/test/cfg2cmd/unsupported-storage-content-type.conf @@ -0,0 +1,3 @@ +# TEST: Unsupported storage content type in a volume disk +# EXPECT_ERROR: storage 'noimages' does not support content-type 'images' +scsi0: noimages:8006/vm-8006-disk-0.raw,iothread=1,size=32G diff --git a/test/run_config2command_tests.pl b/test/run_config2command_tests.pl index 2feebd4a..440682d4 100755 --- a/test/run_config2command_tests.pl +++ b/test/run_config2command_tests.pl @@ -31,6 +31,10 @@ my $base_env = { type => 'dir', shared => 0, }, + noimages => { + path => '/var/lib/vz', + type => 'dir', + }, 'btrfs-store' => { content => { images => 1, -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel