Merge "stub out instances_path in unit tests"
This commit is contained in:
commit
e281fad20e
|
@ -16275,6 +16275,7 @@ class LibvirtDriverTestCase(test.NoDBTestCase):
|
|||
mock_build_device_metadata, mock_set_host_enabled,
|
||||
mock_write_to_file,
|
||||
exists=None):
|
||||
self.flags(instances_path=self.useFixture(fixtures.TempDir()).path)
|
||||
mock_build_device_metadata.return_value = None
|
||||
mock_supports_direct_io.return_value = True
|
||||
|
||||
|
|
|
@ -1684,6 +1684,7 @@ class BackendTestCase(test.NoDBTestCase):
|
|||
def setUp(self):
|
||||
super(BackendTestCase, self).setUp()
|
||||
self.flags(enabled=False, group='ephemeral_storage_encryption')
|
||||
self.flags(instances_path=self.useFixture(fixtures.TempDir()).path)
|
||||
self.INSTANCE['ephemeral_key_uuid'] = None
|
||||
|
||||
def get_image(self, use_cow, image_type):
|
||||
|
|
Loading…
Reference in New Issue