diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2012-07-19 17:27:22 +0100 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2012-12-18 22:52:12 +0000 |
| commit | f57c7275b0cc2e778dd6f75f1bfc79a431642be4 (patch) | |
| tree | 3d2c8c26682f49088dcba3f7f8738176781d6ed9 | |
| parent | 32f16dcbe398170139a6a9127803bbd1d046460b (diff) | |
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 <berrange@redhat.com>
| -rw-r--r-- | nova/tests/test_libvirt.py | 3 |
1 files changed, 1 insertions, 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) |
