summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-12-16 15:34:59 +0000
committerGerrit Code Review <review@openstack.org>2022-12-16 15:34:59 +0000
commit5c0eab351c08492ca8c608fa157a5ef896b13e1a (patch)
tree8b0db589c4d9d12748658fb8cf02ae6af5fdef13
parent3ded705e5601da8f8447281cd0a1bae5b3c5b592 (diff)
parent604c7081dbb6b1542c30e93e25e3f231acd146e2 (diff)
downloadironic-python-agent-5c0eab351c08492ca8c608fa157a5ef896b13e1a.tar.gz
Merge "Fix create configuration unit tests"
-rw-r--r--ironic_python_agent/tests/unit/test_hardware.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ironic_python_agent/tests/unit/test_hardware.py b/ironic_python_agent/tests/unit/test_hardware.py
index 9fcf775c..ab4f9cc0 100644
--- a/ironic_python_agent/tests/unit/test_hardware.py
+++ b/ironic_python_agent/tests/unit/test_hardware.py
@@ -4492,6 +4492,7 @@ class TestGenericHardwareManager(base.IronicAgentTest):
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',
@@ -4626,6 +4627,7 @@ class TestGenericHardwareManager(base.IronicAgentTest):
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)