Tests: test_backup - specify volume_type_id for snapshots
Without this, __DEFAULT__ is passed into the volume_type_id
field on the snapshot object, resulting in Invalid UUID
warnings being printed while running unit tests.
@@ -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
