def test_create_volume_from_snapshot_timeout(self, mock_time):
     """Create volume from snapshot task timeout."""
     timeout = 3
     mock_time.side_effect = utils.generate_timeout_series(timeout)
     self.driver.configuration.restore_check_timeout = timeout
     self.response = self.FAKE_SOAP_RESPONSE["standard"]["success"]
     self.response_detail = self.FAKE_SOAP_RESPONSE["restore_detail"]["pending"]
     self.assertRaises(exception.VolumeBackendAPIException, self.test_create_volume_from_snapshot)
 def test_create_cloned_volume_timeout(self, mock_time):
     """Clone request timeout."""
     timeout = 3
     mock_time.side_effect = utils.generate_timeout_series(timeout)
     self.driver.configuration.disco_clone_check_timeout = timeout
     self.response = self.FAKE_RESPONSE['standard']['success']
     self.response_detail = (self.FAKE_RESPONSE['clone_detail']['pending'])
     self.assertRaises(exception.VolumeBackendAPIException,
                       self.test_create_cloned_volume)
Esempio n. 3
0
 def test_create_snapshot_timeout(self, mock_time):
     """Snapshot request timeout."""
     timeout = 3
     mock_time.side_effect = utils.generate_timeout_series(timeout)
     self.driver.configuration.disco_snapshot_check_timeout = timeout
     self.response = self.FAKE_RESPONSE['standard']['success']
     self.response_detail = (
         self.FAKE_RESPONSE['snapshot_detail']['pending'])
     self.assertRaises(exception.VolumeBackendAPIException,
                       self.test_create_snapshot)
Esempio n. 4
0
 def test_create_volume_from_snapshot_timeout(self, mock_time):
     """Create volume from snapshot task timeout."""
     timeout = 3
     mock_time.side_effect = utils.generate_timeout_series(timeout)
     self.driver.configuration.restore_check_timeout = timeout
     self.response = self.FAKE_RESPONSE['standard']['success']
     self.response_detail = (
         self.FAKE_RESPONSE['restore_detail']['pending'])
     self.assertRaises(exception.VolumeBackendAPIException,
                       self.test_create_volume_from_snapshot)