mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: add vol-qcow2-zerocapacity test to storagevolxml2argvtest
Add a testcase for the previous change to ensure zero capacity volumes can be defined without a backing store. Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
This commit is contained in:
parent
c6eea54008
commit
be6c35e4ac
1
tests/storagevolxml2argvdata/qcow2-zerocapacity.argv
Normal file
1
tests/storagevolxml2argvdata/qcow2-zerocapacity.argv
Normal file
@ -0,0 +1 @@
|
||||
qemu-img create -f qcow2 -o compat=0.10 0K
|
@ -284,6 +284,9 @@ mymain(void)
|
||||
DO_TEST("pool-dir", "vol-qcow2-nocapacity",
|
||||
"pool-dir", "vol-file",
|
||||
"qcow2-nocapacity-convert-prealloc", flags, FMT_OPTIONS);
|
||||
DO_TEST("pool-dir", "vol-qcow2-zerocapacity",
|
||||
NULL, NULL,
|
||||
"qcow2-zerocapacity", 0, FMT_COMPAT);
|
||||
DO_TEST_FULL(false, VIR_VOL_XML_PARSE_OPT_CAPACITY,
|
||||
"pool-dir", "vol-qcow2-nocapacity-backing", NULL, NULL,
|
||||
"qcow2-nocapacity", 0, FMT_OPTIONS);
|
||||
|
7
tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml
Normal file
7
tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<volume>
|
||||
<name>OtherDemo.img</name>
|
||||
<target>
|
||||
<format type="qcow2"/>
|
||||
</target>
|
||||
<capacity>0</capacity>
|
||||
</volume>
|
Loading…
Reference in New Issue
Block a user