[PATCH v2 6/6] tests: Add more storage pool vHBA tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the parent wwnn/wwpn and fabric_wwn tests for the storage pool
now that we have the capability to use the node device driver to
handle the searches via a connection.

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 tests/fchosttest.c | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/tests/fchosttest.c b/tests/fchosttest.c
index c024ae5..c080c9b 100644
--- a/tests/fchosttest.c
+++ b/tests/fchosttest.c
@@ -100,6 +100,30 @@ static const char test12_xml[] =
 "</pool>";
 
 
+/* virStoragePoolCreateXML parent wwnn/wwpn to find the vport capable HBA */
+static const char test13_xml[] =
+"<pool type='scsi'>"
+"  <name>vhba_pool</name>"
+"  <source>"
+"    <adapter type='fc_host' parent_wwnn='2000000012341234' parent_wwpn='1000000012341234' wwnn='20000000c9831b4b' wwpn='10000000c9831b4b'/>"
+"  </source>"
+"  <target>"
+"    <path>/dev/disk/by-path</path>"
+"  </target>"
+"</pool>";
+
+/* virStoragePoolCreateXML parent fabric_wwn to find the vport capable HBA */
+static const char test14_xml[] =
+"<pool type='scsi'>"
+"  <name>vhba_pool</name>"
+"  <source>"
+"    <adapter type='fc_host' parent_fabric_wwn='2000000043214321' wwnn='20000000c9831b4b' wwpn='10000000c9831b4b'/>"
+"  </source>"
+"  <target>"
+"    <path>/dev/disk/by-path</path>"
+"  </target>"
+"</pool>";
+
 /* Test virIsVHBACapable */
 static int
 test1(const void *data ATTRIBUTE_UNUSED)
@@ -389,6 +413,14 @@ mymain(void)
     if (virTestRun("manageVHBAByStoragePool-no-parent", manageVHBAByStoragePool,
                    test12_xml) < 0)
         ret = -1;
+    if (virTestRun("manageVHBAByStoragePool-parent-wwn",
+                   manageVHBAByStoragePool,
+                   test13_xml) < 0)
+        ret = -1;
+    if (virTestRun("manageVHBAByStoragePool-parent-fabric-wwn",
+                   manageVHBAByStoragePool,
+                   test14_xml) < 0)
+        ret = -1;
 
  cleanup:
     VIR_FREE(fchost_prefix);
-- 
2.9.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux