summaryrefslogtreecommitdiff
path: root/nova/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/test_libvirt.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/nova/tests/test_libvirt.py b/nova/tests/test_libvirt.py
index e956eb02f0..ef6fbeba8f 100644
--- a/nova/tests/test_libvirt.py
+++ b/nova/tests/test_libvirt.py
@@ -608,6 +608,19 @@ class LibvirtConnTestCase(test.TestCase):
self.assertEquals(cfg.clock.timers[1].tickpolicy,
"catchup")
+ def test_get_guest_config_windows(self):
+ conn = libvirt_driver.LibvirtDriver(True)
+ instance_ref = db.instance_create(self.context, self.test_instance)
+ instance_ref['os_type'] = 'windows'
+
+ cfg = conn.get_guest_config(instance_ref,
+ _fake_network_info(self.stubs, 1),
+ None, None)
+
+ self.assertEquals(type(cfg.clock),
+ config.LibvirtConfigGuestClock)
+ self.assertEquals(cfg.clock.offset, "localtime")
+
def test_get_guest_config_with_two_nics(self):
conn = libvirt_driver.LibvirtDriver(True)
instance_ref = db.instance_create(self.context, self.test_instance)