libvirt/tests/qemustatusxml2xmldata
Peter Krempa 947d2db31b Use virHashForEachSorted in tested code
The simplest way to write tests is to check the output against expected
output, but we must ensure that the output is stable. We can use
virHashForEachSorted as a hash iterator to ensure stable ordering.

This patch fixes 3 instances of hash iteration which is tested in
various parts, including test output changes in appropriate places.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Matt Coleman <matt@datto.com>
2020-11-06 10:31:57 +01:00
..
backup-pull-in.xml qemustatusxml2xml: backup-pull: Test private data formatting/parsing 2020-09-15 15:25:22 +02:00
backup-pull-out.xml tests: qemustatusxml2xml: Add test for 'pull' type backup job 2019-12-10 12:41:57 +01:00
blockjob-blockdev-in.xml Use virHashForEachSorted in tested code 2020-11-06 10:31:57 +01:00
blockjob-blockdev-out.xml tests: qemustatusxml2xml: Add test case for block job tracking 2019-07-18 17:59:34 +02:00
blockjob-mirror-in.xml tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
blockjob-mirror-out.xml tests: qemuxml2xml: Add proper domain status XML testing 2018-03-13 13:54:11 +01:00
migration-in-params-in.xml qemu: Fill default value in //cpu/@migratable attribute 2020-06-09 20:32:50 +02:00
migration-in-params-out.xml qemuxml2xmltest: Add status XML tests for migration params 2018-04-17 10:46:23 +02:00
migration-out-nbd-in.xml tests: qemu: Extend the test suite with the 'output' sound codec 2018-05-23 09:51:53 +02:00
migration-out-nbd-out.xml Add API to change qemu agent response timeout 2019-11-14 19:10:01 +01:00
migration-out-nbd-tls-in.xml qemu: domain: Modify <migrationSource> to look like <disk> 2019-04-03 11:58:09 +02:00
migration-out-nbd-tls-out.xml Add API to change qemu agent response timeout 2019-11-14 19:10:01 +01:00
migration-out-params-in.xml qemu: Fill default value in //cpu/@migratable attribute 2020-06-09 20:32:50 +02:00
migration-out-params-out.xml qemuxml2xmltest: Add status XML tests for migration params 2018-04-17 10:46:23 +02:00
modern-in.xml qemu: domain: Fill in (i)SCSI backend nodename if it is not present in status XML 2020-09-15 15:20:23 +02:00
modern-out.xml tests: qemuxml2xml: Add modern example of status XML to the test 2018-03-13 13:54:11 +01:00
upgrade-in.xml qemu: domain: Fill in (i)SCSI backend nodename if it is not present in status XML 2020-09-15 15:20:23 +02:00
upgrade-out.xml qemu: domain: Fill in (i)SCSI backend nodename if it is not present in status XML 2020-09-15 15:20:23 +02:00
vcpus-multi-in.xml tests: add a domain ID to live status XML doc 2019-12-12 16:30:02 +00:00
vcpus-multi-out.xml tests: qemuxml2xml: Add proper domain status XML testing 2018-03-13 13:54:11 +01:00