import mock
import random
import re
-import testtools
from cinder import context
from cinder import exception
self.driver.db = self.db
self.driver.do_setup(None)
self.driver.check_for_setup_error()
- self.sleeppatch = mock.patch('eventlet.greenthread.sleep')
- self.sleeppatch.start()
self.driver._helpers.check_fcmapping_interval = 0
- def tearDown(self):
- if self.USESIM:
- self.sleeppatch.stop()
- super(StorwizeSVCDriverTestCase, self).tearDown()
-
def _set_flag(self, flag, value):
group = self.driver.configuration.config_group
self.driver.configuration.set_override(flag, value, group)
self.assertEqual((7, 2, 0, 0), res['code_level'],
'Get code level error')
- @testtools.skip("Bug #1302670")
def test_storwize_vdisk_copy_ops(self):
ctxt = testutils.get_test_admin_context()
volume = self._create_volume()
if not len(self._vdiskcopyops):
self._vdiskcopyops_loop.stop()
self._vdiskcopyops_loop = None
- except IndexError:
+ except KeyError:
msg = (_('_rm_vdisk_copy_op: Volume %s does not have any '
'registered vdisk copy operations.') % volume['id'])
LOG.error(msg)