From a89daffeb99956ab38c0b6c1144803c5b3e851f9 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 19 Feb 2013 19:54:55 +0000 Subject: Fix XML config tests for disk/net/cpu tuning Due to a bug in the XML matching code, some XML formatting problems related to disk/net/cpu tuning were not flaged as errors. The problems were all simply ordering of the elements. This patch also fixes some indentation problems at the same time Fixes bug #1130146 Change-Id: Iee392ed823002b8231b33c27b487c2538b2dc8cd Signed-off-by: Daniel P. Berrange --- nova/tests/test_libvirt_config.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nova/tests/test_libvirt_config.py b/nova/tests/test_libvirt_config.py index 3e44ffe1a..f98e6dd51 100644 --- a/nova/tests/test_libvirt_config.py +++ b/nova/tests/test_libvirt_config.py @@ -492,12 +492,12 @@ class LibvirtConfigGuestDiskTest(LibvirtConfigBaseTest): - 1024000 - 1000 - 1024000 - 1000 - 2048000 - 2000 + 1024000 + 1000 + 1024000 + 1000 + 2048000 + 2000 """) @@ -611,11 +611,11 @@ class LibvirtConfigGuestInterfaceTest(LibvirtConfigBaseTest): - + + - - + """) def test_config_bridge(self): @@ -640,14 +640,14 @@ class LibvirtConfigGuestInterfaceTest(LibvirtConfigBaseTest): - - - - + + + + """) def test_config_bridge_ovs(self): @@ -854,11 +854,6 @@ class LibvirtConfigGuestTest(LibvirtConfigBaseTest): demo 104857600 2 - - 100 - 50000 - 25000 - Acme @@ -876,6 +871,11 @@ class LibvirtConfigGuestTest(LibvirtConfigBaseTest): + + 100 + 50000 + 25000 + -- cgit