functional: Don't inherit from 'ProviderUsageBaseTestCase'

It's not necessary for this test case since we don't query placement
stuff.

Change-Id: I5136b1cab8d704f55d01e5490c42ead6e3e14d98
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit e91b07dc52)
This commit is contained in:
Stephen Finucane 2020-08-26 17:23:38 +01:00
parent 15da841ecb
commit 01b4e779f5
1 changed files with 7 additions and 3 deletions

View File

@ -19,7 +19,7 @@ from nova.tests.functional import integrated_helpers
@ddt.ddt
class TestColdMigrationUsage(integrated_helpers.ProviderUsageBaseTestCase):
class TestColdMigrationUsage(integrated_helpers._IntegratedTestBase):
"""Reproducer for bug #1879878.
Demonstrate the possibility of races caused by running the resource
@ -27,16 +27,20 @@ class TestColdMigrationUsage(integrated_helpers.ProviderUsageBaseTestCase):
reverted and dropping the claim for that migration on the source or
destination host, respectively.
"""
compute_driver = 'fake.MediumFakeDriver'
microversion = 'latest'
def setUp(self):
self.flags(compute_driver=self.compute_driver)
super().setUp()
self.ctxt = nova_context.get_admin_context()
def _setup_compute_service(self):
# Start two computes so we can migrate between them.
self._start_compute('host1')
self._start_compute('host2')
self.ctxt = nova_context.get_admin_context()
def _create_server(self):
"""Creates and return a server along with a source host and target
host.