Skip to content

Commit

Permalink
Merge "Fix create configuration unit tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 16, 2022
2 parents 3ded705 + 604c708 commit 5c0eab3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ironic_python_agent/tests/unit/test_hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -4492,6 +4492,7 @@ def test_create_configuration_failure_with_nvme(self,
self.hardware.create_configuration,
self.node, [])

@mock.patch.object(utils, 'get_node_boot_mode', lambda node: 'bios')
@mock.patch.object(raid_utils, 'get_volume_name_of_raid_device',
autospec=True)
@mock.patch.object(raid_utils, '_get_actual_component_devices',
Expand Down Expand Up @@ -4626,6 +4627,7 @@ def test_create_configuration_skip_list_existing_device_does_not_match(
mocked_execute.assert_called_once_with(
'mdadm', '--examine', '/dev/md0', use_standard_locale=True)

@mock.patch.object(utils, 'get_node_boot_mode', lambda node: 'bios')
@mock.patch.object(raid_utils, '_get_actual_component_devices',
autospec=True)
@mock.patch.object(hardware, 'list_all_block_devices', autospec=True)
Expand Down

0 comments on commit 5c0eab3

Please sign in to comment.