The nova.tests.test_virt_drivers Module

class AbstractDriverTestCase(*args, **kwargs)

Bases: nova.tests.test_virt_drivers._VirtDriverTestCase, nova.test.TestCase

setUp()
class FakeConnectionTestCase(*args, **kwargs)

Bases: nova.tests.test_virt_drivers._VirtDriverTestCase, nova.test.TestCase

setUp()
class LibvirtConnTestCase(*args, **kwargs)

Bases: nova.tests.test_virt_drivers._VirtDriverTestCase, nova.test.TestCase

setUp()
test_force_hard_reboot()
test_migrate_disk_and_power_off()
class VirtDriverLoaderTestCase(*args, **kwargs)

Bases: nova.tests.test_virt_drivers._FakeDriverBackendTestCase, nova.test.TestCase

Test that ComputeManager can successfully load both old style and new style drivers and end up with the correct final class

new_drivers = {'nova.virt.libvirt.LibvirtDriver': 'LibvirtDriver', 'nova.virt.fake.FakeDriver': 'FakeDriver', 'libvirt.LibvirtDriver': 'LibvirtDriver', 'fake.FakeDriver': 'FakeDriver'}
test_fail_to_load_new_drivers()
test_load_new_drivers()
catch_notimplementederror(f)

Decorator to simplify catching drivers raising NotImplementedError

If a particular call makes a driver raise NotImplementedError, we log it so that we can extract this information afterwards to automatically generate a hypervisor/feature support matrix.

Previous topic

The nova.tests.test_virt_disk_vfs_localfs Module

Next topic

The nova.tests.test_vmmode Module

This Page