Illustrate the problem in the schema fixed by previous commit.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
tests/nodedevschemadata/hba_vport_ops.xml | 18 ++++++++++++++++++
tests/nodedevxml2xmlout/hba_vport_ops.xml | 18 ++++++++++++++++++
tests/nodedevxml2xmltest.c | 1 +
3 files changed, 37 insertions(+)
create mode 100644 tests/nodedevschemadata/hba_vport_ops.xml
create mode 100644 tests/nodedevxml2xmlout/hba_vport_ops.xml
diff --git a/tests/nodedevschemadata/hba_vport_ops.xml
b/tests/nodedevschemadata/hba_vport_ops.xml
new file mode 100644
index 0000000000..4abc2e5161
--- /dev/null
+++ b/tests/nodedevschemadata/hba_vport_ops.xml
@@ -0,0 +1,18 @@
+<device>
+ <name>scsi_host12</name>
+ <path>/sys/devices/pci0000:00/0000:00:03.2/0000:06:00.1/host12</path>
+ <parent>pci_0000_06_00_1</parent>
+ <capability type='scsi_host'>
+ <host>12</host>
+ <unique_id>12</unique_id>
+ <capability type='fc_host'>
+ <wwnn>2000f4e9d4eb02c9</wwnn>
+ <wwpn>2001f4e9d4eb02c9</wwpn>
+ <fabric_wwn>2001547feebe79c1</fabric_wwn>
+ </capability>
+ <capability type='vport_ops'>
+ <max_vports>254</max_vports>
+ <vports>0</vports>
+ </capability>
+ </capability>
+</device>
diff --git a/tests/nodedevxml2xmlout/hba_vport_ops.xml
b/tests/nodedevxml2xmlout/hba_vport_ops.xml
new file mode 100644
index 0000000000..6a680d467e
--- /dev/null
+++ b/tests/nodedevxml2xmlout/hba_vport_ops.xml
@@ -0,0 +1,18 @@
+<device>
+ <name>scsi_host12</name>
+ <path>/sys/devices/pci0000:00/0000:00:03.2/0000:06:00.1/host12</path>
+ <parent>pci_0000_06_00_1</parent>
+ <capability type='scsi_host'>
+ <host>12</host>
+ <unique_id>12</unique_id>
+ <capability type='fc_host'>
+ <wwnn>2000f4e9d4eb02c9</wwnn>
+ <wwpn>2001f4e9d4eb02c9</wwpn>
+ <fabric_wwn>2001547feebe79c1</fabric_wwn>
+ </capability>
+ <capability type='vport_ops'>
+ <max_vports>0</max_vports>
+ <vports>0</vports>
+ </capability>
+ </capability>
+</device>
diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c
index f82027fb87..68a4041d8c 100644
--- a/tests/nodedevxml2xmltest.c
+++ b/tests/nodedevxml2xmltest.c
@@ -134,6 +134,7 @@ mymain(void)
DO_TEST("mdev_d069d019_36ea_4111_8f0a_8c9a70e21366");
DO_TEST("mdev_d2441d39_495e_4243_ad9f_beb3f14c23d9");
DO_TEST("mdev_fedc4916_1ca8_49ac_b176_871d16c13076");
+ DO_TEST("hba_vport_ops");
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
--
2.37.1