Merge "Tests: test_backup - specify volume_type_id for snapshots"

This commit is contained in:
Zuul
2021-05-20 17:27:35 +00:00
committed by Gerrit Code Review

View File

@@ -169,6 +169,7 @@ class BaseBackupTest(test.TestCase):
kwargs['volume_size'] = size
kwargs['metadata'] = {}
kwargs['provider_location'] = provider_location
kwargs['volume_type_id'] = fake.VOLUME_TYPE_ID
snapshot_obj = objects.Snapshot(context=self.ctxt, **kwargs)
snapshot_obj.create()
return snapshot_obj