"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ironic/tests/unit/drivers/modules/ilo/test_raid.py" between
ironic-16.0.2.tar.gz and ironic-16.0.3.tar.gz

About: OpenStack Ironic (Optional Service: Bare-Metal Provisioning) aims to provision bare metal machines instead of virtual machines, forked from the Nova baremetal driver.
The "Victoria" series (latest release).

test_raid.py  (ironic-16.0.2):test_raid.py  (ironic-16.0.3)
skipping to change at line 417 skipping to change at line 417
with task_manager.acquire(self.context, self.node.uuid) as task: with task_manager.acquire(self.context, self.node.uuid) as task:
task.driver.raid.create_configuration( task.driver.raid.create_configuration(
task, create_nonroot_volumes=False) task, create_nonroot_volumes=False)
self.assertNotIn('ilo_raid_create_in_progress', self.assertNotIn('ilo_raid_create_in_progress',
task.node.driver_internal_info) task.node.driver_internal_info)
if task.node.clean_step: if task.node.clean_step:
self.assertNotIn('skip_current_clean_step', self.assertNotIn('skip_current_clean_step',
task.node.driver_internal_info) task.node.driver_internal_info)
clean_err_handler_mock.assert_called_once_with( clean_err_handler_mock.assert_called_once_with(
task, task,
("RAID configuration job failed for node %s. Message: "
"'Failed to create raid configuration on node %s'." %
(self.node.uuid, self.node.uuid)),
'Failed to create raid configuration ' 'Failed to create raid configuration '
'on node %s' % self.node.uuid) 'on node %s' % self.node.uuid)
else: else:
self.assertNotIn('skip_current_deploy_step', self.assertNotIn('skip_current_deploy_step',
task.node.driver_internal_info) task.node.driver_internal_info)
deploy_err_handler_mock.assert_called_once_with( deploy_err_handler_mock.assert_called_once_with(
task, task,
("RAID configuration job failed for node %s. Message: "
"'Failed to create raid configuration on node %s'." %
(self.node.uuid, self.node.uuid)),
'Failed to create raid configuration ' 'Failed to create raid configuration '
'on node %s' % self.node.uuid) 'on node %s' % self.node.uuid)
def test_create_configuration_ilo_error_cleaning(self): def test_create_configuration_ilo_error_cleaning(self):
self.node.clean_step = {'step': 'create_configuration', self.node.clean_step = {'step': 'create_configuration',
'interface': 'raid'} 'interface': 'raid'}
self.node.provision_state = states.CLEANING self.node.provision_state = states.CLEANING
self.node.save() self.node.save()
self._test_create_configuration_ilo_error() self._test_create_configuration_ilo_error()
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)