libvirt/tests/qemublocktestdata/xml2json/nodename-long-format.xml
Peter Krempa 8f60653de3 tests: qemublock: Add testing of blockdev JSON property generator
Add a test infrastructure that will allow testing the JSON object
generator used for generating data to use with blockdev-add.

The resulting disk including the backing chain is validated to conform
to the QAPI schema and the expected output files.

The first test cases make sure that libvirt will not allow nodenames
exceeding 31 chars.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
2018-05-07 15:48:10 +02:00

13 lines
318 B
XML

<disk device='disk'>
<driver name='qemu' type='raw'/>
<source file='/path'>
<privateData>
<nodenames>
<nodename type='storage' name='test2'/>
<nodename type='format' name='0123456789ABCDEF0123456789ABCDEF'/>
</nodenames>
</privateData>
</source>
<target dev='vda'/>
</disk>