Tests: Fix retype unit test InvalidUUID warning

This test passes the wrong value in for
volume_type_id.

Change-Id: I90e697a3fa2fa02634d1c82f6862a90c8c3926fe
This commit is contained in:
Eric Harney 2019-09-26 10:34:19 -04:00 committed by whoami-rajat
parent 4935f604ab
commit a657e66e45
1 changed files with 2 additions and 2 deletions

View File

@ -712,7 +712,7 @@ class VolumeRetypeActionsTest(test.TestCase):
name='old',
qos_specs_id=qos_old).id
else:
vol_type_old = v2_fakes.fake_default_type_get()
vol_type_old = v2_fakes.fake_default_type_get()['id']
vol_type_new = utils.create_volume_type(admin_ctxt, self,
name='new',
@ -742,7 +742,7 @@ class VolumeRetypeActionsTest(test.TestCase):
if enc_orig:
utils.create_encryption(admin_ctxt, vol_type_old, self)
else:
vol_type_old = v2_fakes.fake_default_type_get()
vol_type_old = v2_fakes.fake_default_type_get()['id']
vol_type_new = utils.create_volume_type(admin_ctxt, self,
name='new').id