self.driver.create_volume,
self.testData.test_failed_volume)
expect_cmd = [mock.call(*self.testData.LUN_CREATION_CMD(
- 'failed_vol1', 1, 'unit_test_pool', None, None, False))]
+ 'failed_vol1', 1, 'unit_test_pool', None, None, poll=False))]
fake_cli.assert_has_calls(expect_cmd)
- @mock.patch('cinder.openstack.common.loopingcall.FixedIntervalLoopingCall',
+ @mock.patch('oslo_service.loopingcall.FixedIntervalLoopingCall',
new=utils.ZeroIntervalLoopingCall)
def test_create_faulted_volume(self):
volume_name = 'faulted_volume'
poll=True),
mock.call(*self.testData.MIGRATION_VERIFY_CMD(1),
poll=True)]
- fake_cli.assert_has_calls(expect_cmd)
+ fake_cli1.assert_has_calls(expect_cmd1)
+
+ self.configuration.ignore_pool_full_threshold = True
+ fake_cli2 = self.driverSetup(commands, results)
+ self.driver.create_volume_from_snapshot(self.testData.test_volume2,
+ self.testData.test_snapshot)
+ expect_cmd2 = [
+ mock.call(*self.testData.LUN_CREATION_CMD(
+ 'vol2_dest', 1, 'unit_test_pool', None, None,
+ ignore_thresholds=True))]
+ fake_cli2.assert_has_calls(expect_cmd2)
- @mock.patch('cinder.openstack.common.loopingcall.FixedIntervalLoopingCall',
+ @mock.patch('oslo_service.loopingcall.FixedIntervalLoopingCall',
new=utils.ZeroIntervalLoopingCall)
def test_create_volume_from_snapshot_sync_failed(self):