nova/nova/tests/functional/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
..
__init__.py virt: implement get_inventory() for Ironic 2017-03-15 21:49:25 +00:00
test_host_api.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_init_host.py Error out interrupted builds 2019-10-09 17:09:59 +02:00
test_instance_list.py Minimal construct plumbing for nova list when a cell is down 2018-10-31 15:12:18 -04:00
test_live_migration.py Remove global state from the FakeDriver 2020-01-17 16:04:46 +01:00
test_migration_list.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_resource_tracker.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00