diff --git a/nova/tests/unit/compute/monitors/test_cpu_monitor.py b/nova/tests/unit/compute/monitors/test_cpu_monitor.py index 04977cd47fc5..b01ce255915e 100644 --- a/nova/tests/unit/compute/monitors/test_cpu_monitor.py +++ b/nova/tests/unit/compute/monitors/test_cpu_monitor.py @@ -36,7 +36,7 @@ class FakeLibvirt(object): return [0, 0, 0, 800, 0, 0, 0, 0] -class ComputeDriverCPUMonitorTestCase(test.TestCase): +class ComputeDriverCPUMonitorTestCase(test.NoDBTestCase): def setUp(self): super(ComputeDriverCPUMonitorTestCase, self).setUp() diff --git a/nova/tests/unit/compute/monitors/test_monitors.py b/nova/tests/unit/compute/monitors/test_monitors.py index e84647948357..3f6b3bdceadd 100644 --- a/nova/tests/unit/compute/monitors/test_monitors.py +++ b/nova/tests/unit/compute/monitors/test_monitors.py @@ -78,7 +78,7 @@ class FakeMonitorClass4(monitors.ResourceMonitorBase): raise test.TestingException() -class ResourceMonitorBaseTestCase(test.TestCase): +class ResourceMonitorBaseTestCase(test.NoDBTestCase): def setUp(self): super(ResourceMonitorBaseTestCase, self).setUp() self.monitor = FakeResourceMonitor(None) @@ -102,7 +102,7 @@ class ResourceMonitorBaseTestCase(test.TestCase): self.assertEqual(metrics["foo.metric2"], '99.999') -class ResourceMonitorsTestCase(test.TestCase): +class ResourceMonitorsTestCase(test.NoDBTestCase): """Test case for monitors.""" def setUp(self): diff --git a/nova/tests/unit/compute/test_compute.py b/nova/tests/unit/compute/test_compute.py index d507effcc98e..601e465169ce 100644 --- a/nova/tests/unit/compute/test_compute.py +++ b/nova/tests/unit/compute/test_compute.py @@ -11411,7 +11411,7 @@ class ComputeInjectedFilesTestCase(BaseTestCase): expected, None, True, None, False) -class CheckConfigDriveTestCase(test.TestCase): +class CheckConfigDriveTestCase(test.NoDBTestCase): # NOTE(sirp): `TestCase` is far too heavyweight for this test, this should # probably derive from a `test.FastTestCase` that omits DB and env # handling diff --git a/nova/tests/unit/compute/test_flavors.py b/nova/tests/unit/compute/test_flavors.py index cece4b3f39cc..3329ae0bb865 100644 --- a/nova/tests/unit/compute/test_flavors.py +++ b/nova/tests/unit/compute/test_flavors.py @@ -35,7 +35,7 @@ class ExtraSpecTestCase(test.NoDBTestCase): flavors.validate_extra_spec_keys(key_name_list) -class CreateFlavorTestCase(test.TestCase): +class CreateFlavorTestCase(test.NoDBTestCase): def test_create_flavor_ram_error(self): args = ("ram_test", "9999999999", "1", "10", "1") try: diff --git a/nova/tests/unit/compute/test_resources.py b/nova/tests/unit/compute/test_resources.py index cd310297102e..2dc7e9d5d940 100644 --- a/nova/tests/unit/compute/test_resources.py +++ b/nova/tests/unit/compute/test_resources.py @@ -136,7 +136,7 @@ def fake_flavor_obj(**updates): return flavor -class BaseTestCase(test.TestCase): +class BaseTestCase(test.NoDBTestCase): def _initialize_used_res_counter(self): # Initialize the value for the used resource @@ -285,7 +285,7 @@ class BaseTestCase(test.TestCase): self.assertIsInstance(ext.obj, vcpu.VCPU) -class TestVCPU(test.TestCase): +class TestVCPU(test.NoDBTestCase): def setUp(self): super(TestVCPU, self).setUp() diff --git a/nova/tests/unit/compute/test_rpcapi.py b/nova/tests/unit/compute/test_rpcapi.py index 8c135711dc47..71266612322c 100644 --- a/nova/tests/unit/compute/test_rpcapi.py +++ b/nova/tests/unit/compute/test_rpcapi.py @@ -33,7 +33,7 @@ from nova.tests.unit import fake_instance CONF = cfg.CONF -class ComputeRpcAPITestCase(test.TestCase): +class ComputeRpcAPITestCase(test.NoDBTestCase): def setUp(self): super(ComputeRpcAPITestCase, self).setUp()