From f57c7275b0cc2e778dd6f75f1bfc79a431642be4 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 19 Jul 2012 17:27:22 +0100 Subject: Fix "image_meta" data passed in libvirt test case The helper method _check_xml_and_uuid expects a disk image metadata dictionary as its first parameter. The caller was instead passing a instance dictionary. The tests pass regardless, but passing the right data avoids future developer confusion. Change-Id: Ia594e8aa38a8627d304537c09d0d28a3e3a2b27b Signed-off-by: Daniel P. Berrange --- nova/tests/test_libvirt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py index fbafe27f3..0de96d33f 100644 --- a/nova/tests/test_libvirt.py +++ b/nova/tests/test_libvirt.py @@ -1025,8 +1025,7 @@ class LibvirtConnTestCase(test.TestCase): expect_ramdisk=False, rescue=instance_data) def test_xml_uuid(self): - instance_data = dict(self.test_instance) - self._check_xml_and_uuid(instance_data) + self._check_xml_and_uuid({"disk_format": "raw"}) def test_lxc_container_and_uri(self): instance_data = dict(self.test_instance) -- cgit