[PATCH 06/18] qemustatusxml2xmltest: Add tests for iSCSI hostdev private data handling

Peter Krempa pkrempa at redhat.com
Fri Jul 10 14:33:27 UTC 2020


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 tests/qemustatusxml2xmldata/modern-in.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/tests/qemustatusxml2xmldata/modern-in.xml b/tests/qemustatusxml2xmldata/modern-in.xml
index 63ef9caed3..0a3990bd3e 100644
--- a/tests/qemustatusxml2xmldata/modern-in.xml
+++ b/tests/qemustatusxml2xmldata/modern-in.xml
@@ -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'/>
-- 
2.26.2




More information about the libvir-list mailing list