Merge lp://staging/~soren/nova/virt-test-improvements into lp://staging/~hudson-openstack/nova/trunk
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Soren Hansen | ||||
Proposed branch: | lp://staging/~soren/nova/virt-test-improvements | ||||
Merge into: | lp://staging/~hudson-openstack/nova/trunk | ||||
Diff against target: |
2428 lines (+1976/-107) 10 files modified
nova/image/fake.py (+9/-1) nova/image/service.py (+200/-0) nova/tests/fake_libvirt_utils.py (+94/-0) nova/tests/fakelibvirt.py (+773/-0) nova/tests/test_fakelibvirt.py (+391/-0) nova/tests/test_image.py (+11/-0) nova/tests/test_libvirt.py (+184/-2) nova/tests/test_virt_drivers.py (+41/-4) nova/virt/libvirt/connection.py (+44/-100) nova/virt/libvirt/utils.py (+229/-0) |
||||
To merge this branch: | bzr merge lp://staging/~soren/nova/virt-test-improvements | ||||
Related bugs: |
|
||||
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rick Harris (community) | Needs Fixing | ||
Review via email:
|
Commit message
Extend test_virt_drivers to test the libvirt driver
Description of the change
Extend test_virt_driver to also test libvirt driver.
To support this, I've added a fake libvirt implementation. It's supposed
to expose an API and behaviour identical to that of libvirt itself
except without actually running any VM's or setting up any firewall or
anything, but still responding correctly when asked for a domain's XML,
a list of defined domains, running domains, etc.
I've also split out everything from libvirt.connection that is
potentially destructive or otherwise undesirable to run during testing,
and moved it to a new nova.virt.
things separately as well as stub version of it for testing. I hope
eventually to make it similar to fakelibvirt in style (e.g. keep track
of files created and deleted and attempts to open a file that it doesn't
know about, you'll get proper exceptions with proper errnos set and
whatnot).
Unmerged revisions
- 1400. By Soren Hansen
-
Extend fakelibvirt to properly support snapshotCreateXML
- 1399. By Soren Hansen
-
Merge trunk
- 1398. By Soren Hansen
-
Also fix call to reboot()
- 1397. By Soren Hansen
-
Merge trunk
- 1396. By Soren Hansen
-
Move resetting umask back to its original value into a finally block.
- 1395. By Soren Hansen
-
i18n for exception strings in tests.
- 1394. By Soren Hansen
-
Move the calls to mkstemp outside the try block so that only files that have been created are cleaned up.
- 1393. By Soren Hansen
-
Accidentally included a patch to enable profiling. Reverting.
- 1392. By Soren Hansen
-
Merge trunk
- 1391. By Soren Hansen
-
For some reason I thought qemu-img was being run as root.
Whoa, hang on. Found a bug.