Move test_report_client out of placement namespace

test_report_client provides functional tests of the report client using
a fully operating placement service (via wsgi-intercept) but it is not,
in itself, testing placement. Therefore this change moves the test
into nova/tests/functional where it can sit besides other genral purpose
nova-related functional tests.

As noted in the moved file, in a future where placement is extracted,
nova could choose to import a fixture that placement (installed as a
test dependency) provides so that this test and ones like it can
continue to run as desired.

compute/test_resource_tracker.py is updated to reflect the new location
of the module as it makes use of it.

partially implements blueprint placement-extract

Change-Id: I433700e833f97c0fec946dafc2cdda9d49e1100b
This commit is contained in:
Chris Dent 2018-04-04 20:54:56 +01:00
parent 996d708a03
commit ce2840539e
2 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,7 @@ from nova import context
from nova import objects
from nova import rc_fields as fields
from nova import test
from nova.tests.functional.api.openstack.placement import test_report_client
from nova.tests.functional import test_report_client
from nova.tests import uuidsentinel as uuids
from nova.virt import driver as virt_driver

View File

@ -17,6 +17,10 @@ import mock
import requests
from wsgi_intercept import interceptor
# NOTE(cdent): When placement is extracted, placement will need to
# expose a fixture of some kind which operates as deploy does here,
# providing a WSGI application to be intercepted, but it will also
# need to be responsible for having a reasonable persistence layer
from nova.api.openstack.placement import deploy
from nova.compute import provider_tree
from nova import conf