nova/nova/tests/unit/virt
Chris Dent def4b17934 Use nova.db.api directly
nova/db/__init__.py was importing * from nova.db.api. This meant that
any time any code anywhere within the nova.db package was imported
then nova.db.api was too, leading to a cascade of imports that may
not have been desired. Also, in general, code in __init__.py is a pain.

Therefore, this change adjusts code that so that either:

* nova.db.api is used directly
* nova.db.api is imported as 'db'

In either case, the functionality remains the same.

The primary goal of this change was to make it possible to import the
model files without having to import the db api. Moving the model files
to a different place in the directory hierarchy was considered, but
given that "code in __init__.py is a pain" this mode was chosen.

This looks like a very large change, but it is essentially adjusting
package names, many in mocks.

Change-Id: Ic1fd7c87ceda05eeb96735da2a415ef37060bb1a
2018-07-10 14:56:27 +00:00
..
disk Move xenapi disk resizing to privsep. 2018-04-13 07:09:58 +10:00
hyperv Merge "hyper-v: Logs tips on PortBindingFailed" 2018-03-07 16:29:24 +00:00
image
ironic Merge "Request only instance_uuid in ironic node list" 2018-07-02 20:04:07 +00:00
libvirt Use nova.db.api directly 2018-07-10 14:56:27 +00:00
powervm Merge "PowerVM snapshot cleanup" 2018-05-31 20:46:51 +00:00
vmwareapi vmware: Fixes _detach_instance_volumes method 2018-03-29 14:25:53 +00:00
xenapi Use nova.db.api directly 2018-07-10 14:56:27 +00:00
__init__.py
fakelibosinfo.py
test_block_device.py Merge "Expose driver_block_device fields consistently" 2018-05-09 22:01:12 +00:00
test_configdrive.py
test_driver.py Remove usage of parameter enforce_type 2017-04-17 20:23:19 +08:00
test_events.py
test_fake.py
test_firewall.py remove get_nw_info_for_instance from compute.utils 2017-06-13 13:30:06 +02:00
test_hardware.py objects: Remove legacy '_to_dict' functions 2018-06-21 11:30:50 +01:00
test_imagecache.py
test_images.py Fix execute mock for test_convert_image_with_errors 2018-06-14 12:33:21 +00:00
test_netutils.py Remove unnecessary code 2017-07-28 06:01:21 +00:00
test_osinfo.py Do not attempt to load osinfo if we do not have os_distro 2017-03-23 22:07:03 -04:00
test_virt.py Rename block_device_info_get_root 2018-01-11 20:46:13 +00:00
test_virt_drivers.py Remove mox in test_virt_drivers.py 2018-04-11 09:26:22 +09:00