diff --git a/tests/qemumigrationcookiexmldata/full-xml2xml-in.xml b/tests/qemumigrationcookiexmldata/full-xml2xml-in.xml
new file mode 100644
index 0000000000..f312018850
--- /dev/null
+++ b/tests/qemumigrationcookiexmldata/full-xml2xml-in.xml
@@ -0,0 +1,221 @@
+
+ upstream
+ dcf47dbd-46d1-4d5b-b442-262a806a333a
+ hostname2
+ 8b3f4dc4-6a8e-5f9b-94a5-4c35babd8d95
+
+
+
+
+
+
+ leastest
+
+
+ upstream
+ dcf47dbd-46d1-4d5b-b442-262a806a333a
+ 1024000
+ 1024000
+
+
+
+ 8
+
+
+
+
+ /machine
+
+
+ hvm
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+
+
+ destroy
+ restart
+ restart
+
+
+
+
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /dev/random
+
+
+
+
+
+
+
+ testportdata
+
+
+
+
+
+
+
+ 12345
+ 54321
+ 986
+ 7654
+ 1
+ 11
+ 12
+ 2
+ 3
+ 4
+ 5
+ 51
+ 52
+ 53
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 131
+ 132
+ 133
+ 134
+ 135
+ 14
+
+
+
+
+
+
+
+
diff --git a/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml b/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml
new file mode 100644
index 0000000000..a07dd1f147
--- /dev/null
+++ b/tests/qemumigrationcookiexmldata/full-xml2xml-out.xml
@@ -0,0 +1,219 @@
+
+ upstream
+ dcf47dbd-46d1-4d5b-b442-262a806a333a
+ hostname
+ 4a802f00-4cba-5df6-9679-a08c4c5b577f
+
+
+
+
+ leastest
+
+
+ upstream
+ dcf47dbd-46d1-4d5b-b442-262a806a333a
+ 1024000
+ 1024000
+
+
+
+ 8
+
+
+
+
+ /machine
+
+
+ hvm
+
+
+
+
+
+
+
+
+
+ |
+ |
+
+
+
+
+
+
+
+ destroy
+ restart
+ restart
+
+
+
+
+
+ /usr/bin/qemu-system-x86_64
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ /dev/random
+
+
+
+
+
+
+
+ testportdata
+
+
+
+
+
+
+
+ 12345
+ 54321
+ 986
+ 7654
+ 1
+ 11
+ 12
+ 2
+ 3
+ 4
+ 5
+ 51
+ 52
+ 53
+ 6
+ 7
+ 8
+ 9
+ 10
+ 11
+ 12
+ 13
+ 131
+ 132
+ 133
+ 134
+ 135
+ 14
+
+
+
+
+
+
+
+
diff --git a/tests/qemumigrationcookiexmltest.c b/tests/qemumigrationcookiexmltest.c
index e492e4b35e..5fe0ba8a8a 100644
--- a/tests/qemumigrationcookiexmltest.c
+++ b/tests/qemumigrationcookiexmltest.c
@@ -317,7 +317,8 @@ mymain(void)
if (testQemuMigrationCookieDom2XML("modern", "qemustatusxml2xmldata/modern-in.xml", 0, 0) < 0)
ret = -1;
- if (testQemuMigrationCookieXML2XML("basic", "qemustatusxml2xmldata/modern-in.xml", 0) < 0)
+ if (testQemuMigrationCookieXML2XML("basic", "qemustatusxml2xmldata/modern-in.xml", 0) < 0 ||
+ testQemuMigrationCookieXML2XML("full", "qemustatusxml2xmldata/modern-in.xml", 0) < 0)
ret = -1;
virBufferFreeAndReset(&testnamebuf);