nova/nova/tests/unit/scheduler
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
..
client Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
filters Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
weights Change consecutive build failure limit to a weigher 2018-06-06 15:18:50 -07:00
__init__.py
fakes.py Don't filter out sibling sets with one core 2018-01-30 10:09:59 +00:00
ironic_fakes.py Set IronicNodeState.uuid in _update_from_compute_node 2017-07-25 17:52:47 -04:00
test_caching_scheduler.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_chance_scheduler.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
test_client.py [placement] Add sending global request ID in delete (3) 2018-01-22 02:23:12 +00:00
test_filter_scheduler.py Fix interpretation of max_attempts for scheduling alternates 2018-05-18 09:06:07 -07:00
test_filters.py Fix invalid uuid warnings 2016-05-10 09:04:37 +00:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py objects: Remove legacy '_to_dict' functions 2018-06-21 11:30:50 +01:00
test_request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
test_rpcapi.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00
test_scheduler.py Only run placement request filters when Placement will be called 2018-06-04 07:33:24 +00:00
test_scheduler_utils.py Fix invalid UUIDs in remaining tests 2018-01-30 17:15:03 +00:00
test_utils.py Granular requests to get_allocation_candidates 2018-05-18 21:43:02 +00:00