提交 77da2487 编写于 作者: D David Allan

Add multiIQN tests

* Fix broken rng schema
* Add test input & output files
上级 98fafb0c
...@@ -188,12 +188,14 @@ ...@@ -188,12 +188,14 @@
</element> </element>
</define> </define>
<define name='initiatorinfoiqn'> <define name='initiatorinfo'>
<element name='iqn'> <element name='initiator'>
<attribute name='name'> <element name='iqn'>
<text/> <attribute name='name'>
</attribute> <text/>
<empty/> </attribute>
<empty/>
</element>
</element> </element>
</define> </define>
...@@ -372,7 +374,7 @@ ...@@ -372,7 +374,7 @@
<ref name='sourceinfohost'/> <ref name='sourceinfohost'/>
<ref name='sourceinfodev'/> <ref name='sourceinfodev'/>
<optional> <optional>
<ref name='initiatorinfoiqn'/> <ref name='initiatorinfo'/>
</optional> </optional>
<optional> <optional>
<ref name='sourceinfoauth'/> <ref name='sourceinfoauth'/>
......
<pool type='iscsi'>
<name>multiiqn</name>
<uuid>e9392370-2917-565e-792c-e057f46512d7</uuid>
<capacity>0</capacity>
<allocation>0</allocation>
<available>0</available>
<source>
<host name='iscsi.example.com'/>
<device path='demo-target'/>
<initiator>
<iqn name='initiator0'/>
</initiator>
</source>
<target>
<path>/dev/disk/by-path</path>
<permissions>
<mode>0700</mode>
<owner>0</owner>
<group>0</group>
</permissions>
</target>
</pool>
<pool type='iscsi'>
<name>multiiqn</name>
<uuid>e9392370-2917-565e-792c-e057f46512d7</uuid>
<capacity>0</capacity>
<allocation>0</allocation>
<available>0</available>
<source>
<host name='iscsi.example.com'/>
<device path='demo-target'/>
<initiator>
<iqn name='initiator0'/>
</initiator>
</source>
<target>
<path>/dev/disk/by-path</path>
<permissions>
<mode>0700</mode>
<owner>0</owner>
<group>0</group>
</permissions>
</target>
</pool>
...@@ -95,6 +95,7 @@ mymain(int argc, char **argv) ...@@ -95,6 +95,7 @@ mymain(int argc, char **argv)
DO_TEST("pool-netfs"); DO_TEST("pool-netfs");
DO_TEST("pool-scsi"); DO_TEST("pool-scsi");
DO_TEST("pool-mpath"); DO_TEST("pool-mpath");
DO_TEST("pool-iscsi-multiiqn");
return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册