mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 15:43:52 +00:00
test: cfg2cmd: expect error for invalid volume's storage content type
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.kral@proxmox.com> [FE: add 'content' key to storage hash to be slightly more realistic] Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
78a0c43e7c
commit
295d0be11c
3
test/cfg2cmd/unsupported-storage-content-type.conf
Normal file
3
test/cfg2cmd/unsupported-storage-content-type.conf
Normal file
@ -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
|
@ -31,6 +31,13 @@ my $base_env = {
|
||||
type => 'dir',
|
||||
shared => 0,
|
||||
},
|
||||
noimages => {
|
||||
content => {
|
||||
iso => 1,
|
||||
},
|
||||
path => '/var/lib/vz',
|
||||
type => 'dir',
|
||||
},
|
||||
'btrfs-store' => {
|
||||
content => {
|
||||
images => 1,
|
||||
|
Loading…
Reference in New Issue
Block a user