diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2020-08-26 17:23:38 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2020-09-11 17:23:07 +0100 |
commit | 01b4e779f5c3073bf460dc989c5cc134e9227f9c (patch) | |
tree | 2f1636c0e8fc14f58b34744bb326a0f24c52435d | |
parent | 15da841ecb6cc6152f5e6dbcd63bf09725cac6fc (diff) | |
download | nova-01b4e779f5c3073bf460dc989c5cc134e9227f9c.tar.gz |
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 e91b07dc522db6b6e4df8972437f78ef2697790b)
-rw-r--r-- | nova/tests/functional/regressions/test_bug_1879878.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nova/tests/functional/regressions/test_bug_1879878.py b/nova/tests/functional/regressions/test_bug_1879878.py index d6f2b11688..fd587e5ddd 100644 --- a/nova/tests/functional/regressions/test_bug_1879878.py +++ b/nova/tests/functional/regressions/test_bug_1879878.py @@ -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. |