commit 50861d3221f625a5cc589d903054bb2c440b4026
Author: Matt Riedemann <email address hidden>
Date: Mon Jan 26 13:12:52 2015 -0800
libvirt: update uri_whitelist in fakelibvirt.Connection
Commit 4b9bec3a1c819e7006af6bfa1de6928bde91b2c7 removed the mocking of
nova.virt.libvirt.host.Host.get_connection to use fakelibvirt instead,
but if you don't have libvirt-python in your venv the tests fail, so
fakelibvirt in it's current form wasn't actually working for all tests.
This change updates the uri_whitelist in the init method of the
fakelibvirt Connection class to add some other URIs found in other parts
of the libvirt code (the LibvirtDriver.uri static method).
Removes the unnecessary 'xen:///system' whitelisted URI.
Since libvirt-python is no longer needed to run the libvirt driver
unit tests, it's removed from test-requirements.txt.
Reviewed: https:/ /review. openstack. org/150148 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=50861d3221f 625a5cc589d9030 54bb2c440b4026
Committed: https:/
Submitter: Jenkins
Branch: master
commit 50861d3221f625a 5cc589d903054bb 2c440b4026
Author: Matt Riedemann <email address hidden>
Date: Mon Jan 26 13:12:52 2015 -0800
libvirt: update uri_whitelist in fakelibvirt. Connection
Commit 4b9bec3a1c819e7 006af6bfa1de692 8bde91b2c7 removed the mocking of virt.libvirt. host.Host. get_connection to use fakelibvirt instead,
nova.
but if you don't have libvirt-python in your venv the tests fail, so
fakelibvirt in it's current form wasn't actually working for all tests.
This change updates the uri_whitelist in the init method of the
fakelibvirt Connection class to add some other URIs found in other parts
of the libvirt code (the LibvirtDriver.uri static method).
Removes the unnecessary 'xen:///system' whitelisted URI.
Since libvirt-python is no longer needed to run the libvirt driver ts.txt.
unit tests, it's removed from test-requiremen
Closes-Bug: #1414708
Change-Id: Id7aefe9bf21dc3 d0e2db42e668faf 28e926aea43