]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: storagepoolxml2xmltest: Fix pool-rbd test
authorAnatole Denis <natolumin@gmail.com>
Fri, 11 Mar 2016 16:50:53 +0000 (17:50 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 28 Mar 2016 16:02:31 +0000 (12:02 -0400)
This test failed for two reasons:
* The uuid was missing from the input file
* The output file had the <name> in a different place from the actual output

tests/storagepoolxml2xmlin/pool-rbd.xml
tests/storagepoolxml2xmlout/pool-rbd.xml

index 056ba6ec0e8d16434679564e5e8c4201c0d2d903..f3a1c26cc878b16d80e7d3d06fca921326671923 100644 (file)
@@ -1,5 +1,6 @@
 <pool type='rbd'>
   <name>ceph</name>
+  <uuid>47c1faee-0207-e741-f5ae-d9b019b98fe2</uuid>
   <source>
     <name>rbd</name>
     <host name='localhost' port='6789'/>
index 4fe2fce767384edb2f25174c3698d5fae26523d2..3cdf0a0f3019796a000e257f2e6ce1394e6ec4e9 100644 (file)
@@ -5,9 +5,9 @@
   <allocation unit='bytes'>0</allocation>
   <available unit='bytes'>0</available>
   <source>
-    <name>rbd</name>
     <host name='localhost' port='6789'/>
     <host name='localhost' port='6790'/>
+    <name>rbd</name>
     <auth type='ceph' username='admin'>
       <secret uuid='2ec115d7-3a88-3ceb-bc12-0ac909a6fd87'/>
     </auth>