diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2012-07-05 19:40:47 +0100 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2012-07-06 11:40:21 +0100 |
| commit | 4bbb9cfde27cd3c8268caf272d04a009b50c7a08 (patch) | |
| tree | c3f043199c82b1caa6d867769aafb29aca25e3c8 /nova/openstack | |
| parent | e6ec6f851223151bec1d3ef47bb1030c1ebb598b (diff) | |
| download | nova-4bbb9cfde27cd3c8268caf272d04a009b50c7a08.tar.gz nova-4bbb9cfde27cd3c8268caf272d04a009b50c7a08.tar.xz nova-4bbb9cfde27cd3c8268caf272d04a009b50c7a08.zip | |
Fallback to fakelibvirt in test_libvirt.py test suite
If the native 'libvirt' module is not available on the host,
currently test_libvirt.py stubs it out to ''. While this
has sort-of worked for some test cases, others have had to
be configured to skip. As the complexity of the libvirt driver
increases, ever more tests will need to be skipped.
There is, however, the fakelibvirt.py module which provides
a dummy impl of the libvirt APIs for use in test_virt_drivers.py
With a few enhancements this fake impl is good enough to use
with test_libvirt.py too.
The constructor of libvirtError is changed to accept the
'msg' as first arg to match the regular libvirt module.
A few missing constants are added. The migrateToURI
method is stubbed out
All the previously skipped tests can now be enabled as
normal.
Change-Id: I15efbef8c676cc0e263a9c9bdd7b14dfb3771105
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
