domainsnapshotxml2xmltest: Add existing files as new tests

There were plenty snapshot XMLs in the tests/domainsnapshotxml2xmlin
directory that actually weren't used in XML testing. The upgraded
domainsnapshotxml2xml test now allows us to use them.
This commit is contained in:
Peter Krempa 2013-12-04 18:31:39 +01:00
parent 630adbe08d
commit a686115cba
8 changed files with 45 additions and 2 deletions

View File

@ -6,5 +6,4 @@
<parent>
<name>earlier_snap</name>
</parent>
<creationTime>1272917631</creationTime>
</domainsnapshot>

View File

@ -2,6 +2,7 @@
<name>my snap name</name>
<description>!@#$%^</description>
<state>running</state>
<memory snapshot='internal'/>
<creationTime>1272917631</creationTime>
<domain>
<uuid>9d37b878-a7cc-9f9a-b78f-49b3abad25a8</uuid>

View File

@ -0,0 +1,15 @@
<domainsnapshot>
<name>my snap name</name>
<description>!@#$%^</description>
<disks>
<disk name='/dev/HostVG/QEMUGuest1'/>
<disk name='hdb' snapshot='no'/>
<disk name='hdc' snapshot='internal'/>
<disk name='hdd' snapshot='external'>
<driver type='qed'/>
</disk>
<disk name='hde' snapshot='external'>
<source file='/path/to/new'/>
</disk>
</disks>
</domainsnapshot>

View File

@ -0,0 +1,8 @@
<domainsnapshot>
<name>1386166249</name>
<state>nostate</state>
<creationTime>1386166249</creationTime>
<domain>
<uuid>9d37b878-a7cc-9f9a-b78f-49b3abad25a8</uuid>
</domain>
</domainsnapshot>

View File

@ -0,0 +1,5 @@
<domainsnapshot>
<name>my snap name</name>
<description>!@#$%^</description>
<memory snapshot='external' file='/dev/HostVG/GuestMemory'/>
</domainsnapshot>

View File

@ -0,0 +1,5 @@
<domainsnapshot>
<name>snap1</name>
<description>A longer description!</description>
<state>nostate</state>
</domainsnapshot>

View File

@ -1,7 +1,7 @@
<domainsnapshot>
<name>my snap name</name>
<description>!@#$%^</description>
<state>running</state>
<state>nostate</state>
<creationTime>1272917631</creationTime>
<memory snapshot='internal'/>
<domain>

View File

@ -215,6 +215,16 @@ mymain(void)
DO_TEST_OUT("metadata", "c7a5fdbd-edaf-9455-926a-d65c16db1809", false);
DO_TEST_OUT("external_vm_redefine", "c7a5fdbd-edaf-9455-926a-d65c16db1809", false);
DO_TEST_INOUT("empty", "9d37b878-a7cc-9f9a-b78f-49b3abad25a8", false, false);
DO_TEST_INOUT("noparent", "9d37b878-a7cc-9f9a-b78f-49b3abad25a8", false, false);
DO_TEST_INOUT("external_vm", NULL, false, false);
DO_TEST_INOUT("noparent", "9d37b878-a7cc-9f9a-b78f-49b3abad25a8", false, false);
DO_TEST_INOUT("disk_snapshot", NULL, false, false);
DO_TEST_IN("name_and_description", NULL);
DO_TEST_IN("description_only", NULL);
DO_TEST_IN("name_only", NULL);
cleanup:
if (testSnapshotXMLVariableLineRegex)
regfree(testSnapshotXMLVariableLineRegex);