nova/nova/tests/unit/compute
Eric Fried b4c03e325b Remove nova.compute.*API() shims
When we had cellsv1, we had two different sets of
[Host|InstanceAction|ComputeCells]API. Now that cellsv1 is gone, we only
need nova.compute.api.API, .HostAPI, and .InstanceActionAPI. This patch
removes the dynamic loader shims from nova/compute/__init__.py and swaps
out all references to directly access the classes in nova.compute.api.

Note that there are a couple of ways we could have done this. One way
would have been to replace

  from nova import compute

with

  from nova.compute import api

and then change

  self.compute_api = compute.API()

to

  self.compute_api = api.API()

However, the current approach was preferred because
- smaller delta
- the code reads better as compute.API(), which is more important than
  the import being pretty

cleanup for blueprint remove-cells-v1

Change-Id: I84d9692efa3a131d6392dbd1011dfc43e4ac0b53
2019-06-12 16:09:46 +01:00
..
monitors Do not log a warning about not using compute monitors 2019-04-04 14:32:53 -04:00
__init__.py
eventlet_utils.py
fake_resource_tracker.py Use a static resource tracker in compute manager 2019-01-17 06:34:29 +00:00
test_claims.py Make Claim._claim_test handle SchedulerLimits object 2019-02-12 11:59:51 -05:00
test_compute.py Remove nova.compute.*API() shims 2019-06-12 16:09:46 +01:00
test_compute_api.py Stop passing 'delete_type' to 'terminate_instance' 2019-06-12 16:09:46 +01:00
test_compute_mgr.py Merge "Remove 'ComputeManager._reschedule'" 2019-06-08 04:51:44 +00:00
test_compute_utils.py Remove deprecated 'default_flavor' config option 2019-04-30 13:01:40 +00:00
test_compute_xen.py Remove mox in nova/tests/unit/virt/xenapi/stubs.py 2018-06-21 23:59:39 +00:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Remove nova.compute.*API() shims 2019-06-12 16:09:46 +01:00
test_instance_list.py Plumbing for ignoring list_records_by_skipping_down_cells 2019-02-08 16:28:28 -05:00
test_keypairs.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_multi_cell_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
test_provider_tree.py Reduce calls to placement from _ensure 2019-01-16 18:34:34 +00:00
test_resource_tracker.py Update usage in RT.drop_move_claim during confirm resize 2019-05-29 17:27:00 -04:00
test_rpcapi.py Make nova.compute.rpcapi.ComputeAPI.router a singleton 2019-04-24 19:59:37 -04:00
test_shelve.py Extract compute API _create_image to compute.utils 2019-02-05 12:27:57 -05:00
test_stats.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_virtapi.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00