Tests: Fix IBM XIV
Test test_handle_created_vol_properties_returns_vol_update can make other XIV unit tests fail if executed before them because it changes a class with a Mock and doesn't restore it after the test. This patch fixes this test. Change-Id: I3ad9e565e4bdeca2e4b6ca76d239ba96cca0cd20
This commit is contained in:
parent
493d0e6fc3
commit
023fa94bde
@ -2610,7 +2610,7 @@ class XIVProxyTest(test.TestCase):
|
|||||||
test_mock.cinder.exception,
|
test_mock.cinder.exception,
|
||||||
driver)
|
driver)
|
||||||
|
|
||||||
xiv_replication.VolumeReplication = mock.MagicMock()
|
self.mock_object(xiv_replication, 'VolumeReplication')
|
||||||
grp = testutils.create_group(self.ctxt, name='bla', group_type_id='1')
|
grp = testutils.create_group(self.ctxt, name='bla', group_type_id='1')
|
||||||
volume = testutils.create_volume(self.ctxt, display_name='bla',
|
volume = testutils.create_volume(self.ctxt, display_name='bla',
|
||||||
volume_type_id=self.vt['id'])
|
volume_type_id=self.vt['id'])
|
||||||
|
Loading…
Reference in New Issue
Block a user