nova/nova
Chris Dent 787bb33606 Use external placement in functional tests
Adjust the fixtures used by the functional tests so they
use placement database and web fixtures defined by placement
code. To avoid making redundant changes, the solely placement-
related unit and functional tests are removed, but the placement
code itself is not (yet).

openstack-placement is required by the functional tests. It is not
added to test-requirements as we do not want unit tests to depend
on placement in any way, and we enforce this by not having placement
in the test env.

The concept of tox-siblings is used to ensure that the
placement requirement will be satisfied correctly if there is a
depends-on. To make this happen, the functional jobs defined in
.zuul.yaml are updated to require openstack/placement.

tox.ini has to be updated to use a envdir that is the same
name as job. Otherwise the tox siblings role in ansible cannot work.

The handling of the placement fixtures is moved out of nova/test.py
into the functional tests that actually use it because we do not
want unit tests (which get the base test class out of test.py) to
have anything to do with placement. This requires adjusting some
test files to use absolute import.

Similarly, a test of the comparison function for the api samples tests
is moved into functional, because it depends on placement functionality,

TestUpgradeCheckResourceProviders in unit.cmd.test_status is moved into
a new test file: nova/tests/functional/test_nova_status.py. This is done
because it requires the PlacementFixture, which is only available to
functional tests. A MonkeyPatch is required in the test to make sure that
the right context managers are used at the right time in the command
itself (otherwise some tables do no exist). In the test itself, to avoid
speaking directly to the placement database, which would require
manipulating the RequestContext objects, resource providers are now
created over the API.

Co-Authored-By: Balazs Gibizer <balazs.gibizer@ericsson.com>
Change-Id: Idaed39629095f86d24a54334c699a26c218c6593
2018-12-12 18:46:49 +00:00
..
api Merge "Drop cruft code for all_tenants behaviour" 2018-12-08 16:05:52 +00:00
cells
cmd Use external placement in functional tests 2018-12-12 18:46:49 +00:00
common
compute Merge "Drop pre-cellsv2 compat in compute API.get()" 2018-12-12 16:38:54 +00:00
conductor Handle tags in _bury_in_cell0 2018-12-11 12:40:22 -05:00
conf Merge "Add docs for (initial) allocation ratio configuration" 2018-12-10 15:22:51 +00:00
console Use nova-consoleauth only if workaround enabled 2018-10-11 18:23:02 +00:00
consoleauth Fix stacktraces with redis caching backend 2018-09-27 13:15:11 -04:00
db Update mailinglist from dev to discuss 2018-12-05 09:44:35 +08:00
hacking Add a hacking rule for deprecated assertion methods 2018-10-25 11:49:10 +09:00
image Update mailinglist from dev to discuss 2018-12-05 09:44:35 +08:00
ipv6
keymgr
locale Imported Translations from Zanata 2018-09-23 06:53:32 +00:00
network Merge "Delete NeutronLinuxBridgeInterfaceDriver" 2018-12-06 11:28:58 +00:00
notifications Transform scheduler.select_destinations notification 2018-11-30 13:20:35 +01:00
objects Merge "Add compute_node ratio online data migration script" 2018-12-10 10:11:32 +00:00
pci network: update pci request spec to handle trusted tags 2018-05-31 13:55:40 -04:00
policies Merge "Allow ability for non admin users to use all filters on server list." 2018-09-23 05:17:23 +00:00
privsep Merge "Fixed concurrent access to direct io test file" 2018-12-08 10:05:22 +00:00
scheduler Merge "Transform scheduler.select_destinations notification" 2018-12-10 06:05:47 +00:00
servicegroup Fix service list for disabled compute using MC driver 2018-08-14 14:11:22 +08:00
tests Use external placement in functional tests 2018-12-12 18:46:49 +00:00
virt Merge "Fix typo" 2018-12-12 00:40:19 +00:00
vnc Deprecate the nova-xvpvncproxy service 2018-10-15 10:03:13 +01:00
volume Remove v1 check in Cinder client version lookup 2018-11-20 14:52:12 +00:00
__init__.py
availability_zones.py
baserpc.py
block_device.py Add microversion 2.67 to support volume_type 2018-10-12 02:57:58 -04:00
cache_utils.py
config.py Configure placement DB context manager for nova-manage/status 2018-09-05 10:29:48 -04:00
context.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
crypto.py Convert certificate generation to processutils. 2018-05-02 19:18:41 +10:00
debugger.py
exception.py Merge "Add compute API validation for when a volume_type is requested" 2018-10-12 05:56:48 +00:00
exception_wrapper.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py
policy.py Simplify logic in get_enforcer 2018-04-27 15:42:28 +00:00
profiler.py
quota.py Make _instances_cores_ram_count() be smart about cells 2018-11-13 03:35:33 -05:00
rc_fields.py Add bandwidth related standard resource classes 2018-11-05 17:47:13 -05:00
rpc.py Use oslo.messaging per-call monitoring 2018-06-11 14:44:10 -07:00
safe_utils.py
service.py Move conductor wait_until_ready() delay before manager init 2018-08-31 12:50:10 -07:00
service_auth.py
test.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
utils.py Merge "Fixed concurrent access to direct io test file" 2018-12-08 10:05:22 +00:00
version.py
weights.py
wsgi.py