libvirt/tests/virstorageutildata/gluster-parse-multivol-src.xml
Peter Krempa 5df6992e1c storage: Fix XPath for looking up gluster volume name
Use the relative lookup specifier rather than the global one. Otherwise
only the first name would be looked up. Add a test case to cover the
scenario.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1436574
2017-04-04 16:36:15 +02:00

33 lines
873 B
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--- note that the XML file is truncated -->
<cliOutput>
<opRet>0</opRet>
<opErrno>0</opErrno>
<opErrstr/>
<volInfo>
<volumes>
<volume>
<name>aaa</name>
<id>d0b219d4-4169-4907-8994-d2e2434854ed</id>
<status>0</status>
<statusStr>Created</statusStr>
<snapshotCount>0</snapshotCount>
</volume>
<volume>
<name>test</name>
<id>32826068-2320-4b62-a825-2554edb7f020</id>
<status>1</status>
<statusStr>Started</statusStr>
<snapshotCount>0</snapshotCount>
</volume>
<volume>
<name>test1</name>
<id>dfa070f4-b12f-4166-8d68-041b73127abc</id>
<status>0</status>
<statusStr>Created</statusStr>
</volume>
<count>3</count>
</volumes>
</volInfo>
</cliOutput>