qemustatusxml2xmltest: Add tests for iSCSI hostdev private data handling

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2020-06-17 11:27:02 +02:00
parent bb78cf0046
commit 6306f88df0

View File

@ -458,6 +458,24 @@
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<hostdev mode='subsystem' type='scsi' managed='yes'>
<source protocol='iscsi' name='iqn.1992-01.com.example:storage/1'>
<host name='example.org' port='3260'/>
<privateData>
<nodenames>
<nodename type='storage' name='hostdev-backend'/>
</nodenames>
<objects>
<secret type='auth' alias='custom-secret'/>
</objects>
</privateData>
<auth username='myname'>
<secret type='iscsi' usage='mycluster_myname'/>
</auth>
</source>
<alias name='hostdev0'/>
<address type='drive' controller='0' bus='0' target='2' unit='4'/>
</hostdev>
<redirdev bus='usb' type='spicevmc'>
<alias name='redir0'/>
<address type='usb' bus='0' port='2'/>