nova/nova/tests/unit/compute
Balazs Gibizer 23d3b8fbc9 Remove global state from the FakeDriver
The virt driver FakeDriver used in both the functional and in the unit
test used a global state to configure the host and node names the driver
reports. This was hard to use when more then one compute service is started.
Also global state is dangerous.

It turned out that only a set of unit tests are using multiple nodes per
compute the rest of the tests can simply use host=<hostname>,
nodes=[<hostname>] setup.

So this removes the global state.

On stable/stein:
* Changes in functional/regressions/test_bug_1764556.py just removes the
  usage of the global state as that test was backported before the patch
  being backported was introduced

* Changes in functional/regressions/test_bug_1839560.py is a re-backport
  of If822509e906d5094f13a8700b2b9ed3c40580431 adapted to the current
  patch.

Related-Bug: #1859766

Change-Id: I2cf2fcbaebc706f897ce5dfbff47d32117064f9c
(cherry picked from commit b5666fb492)
2020-01-17 16:04:46 +01:00
..
monitors Do not log a warning about not using compute monitors 2019-04-08 15:35:04 +00: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 global state from the FakeDriver 2020-01-17 16:04:46 +01:00
test_compute_api.py Fix non-existent method of Mock 2019-08-16 08:23:25 +09:00
test_compute_cells.py Flavor extra spec and image properties validation from API 2019-03-05 12:05:06 -06:00
test_compute_mgr.py Remove global state from the FakeDriver 2020-01-17 16:04:46 +01:00
test_compute_utils.py Refresh instance network info on deletion 2019-06-13 16:06:45 +02: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 Minimal construct plumbing for nova service-list when a cell is down 2018-10-31 15:22:15 -04: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 Join migration_context and flavor in Migration.instance 2019-11-26 13:40:43 +00:00
test_rpcapi.py compute: Use long_rpc_timeout in reserve_block_device_name 2019-12-02 20:14:23 +00: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