Merge "Fix ImageBackendFixture not to support direct_snapshot"

This commit is contained in:
Zuul 2021-03-06 17:23:02 +00:00 committed by Gerrit Code Review
commit 1ba26a7b68
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ class ImageBackendFixture(fixtures.Fixture):
disk.libvirt_info.side_effect = functools.partial(
self._fake_libvirt_info, disk)
disk.direct_snapshot.side_effect = (
NotImplementedError('direct_snapshot() is not implemented'))
return disk
def _mock_backend(self, backend_self, image_type=None):