diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-07-22 19:48:19 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-08-14 14:20:26 +0200 |
commit | b73420ec5302f7b37c66d29f10f87da1cc31bb01 (patch) | |
tree | 8ef7ac1cc83f24c5cb250f96efdfaf0e197988b0 /ironic/tests/unit/drivers/modules/redfish/test_boot.py | |
parent | 9fab96fc3748dcdefb3a57bf40b8c9feb4a1981b (diff) | |
download | ironic-b73420ec5302f7b37c66d29f10f87da1cc31bb01.tar.gz |
Add set_boot_device hook in `redfish` boot interface
Added `_set_boot_device()` method to `redfish` boot interface to
let future fishy hardware types reusing standard `redfish`
implementation modulo setting boot device procedure.
With Redfish, it seems, setting node to boot from Cd implies booting
from either virtual or physical CD depending on media presence in
either of the devices.
Change-Id: I576b90be46f9cadf1a051e17c95a98aefc83fe1f
Diffstat (limited to 'ironic/tests/unit/drivers/modules/redfish/test_boot.py')
-rw-r--r-- | ironic/tests/unit/drivers/modules/redfish/test_boot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic/tests/unit/drivers/modules/redfish/test_boot.py b/ironic/tests/unit/drivers/modules/redfish/test_boot.py index 7e0d24766..82aba0849 100644 --- a/ironic/tests/unit/drivers/modules/redfish/test_boot.py +++ b/ironic/tests/unit/drivers/modules/redfish/test_boot.py @@ -432,7 +432,7 @@ class RedfishVirtualMediaBootTestCase(db_base.DbTestCase): task, expected_params, 'deploy') mock_manager_utils.node_set_boot_device.assert_called_once_with( - task, boot_devices.CDROM) + task, boot_devices.CDROM, False) mock_boot_mode_utils.sync_boot_mode.assert_called_once_with(task) @@ -501,7 +501,7 @@ class RedfishVirtualMediaBootTestCase(db_base.DbTestCase): task, expected_params, 'deploy') mock_manager_utils.node_set_boot_device.assert_called_once_with( - task, boot_devices.CDROM) + task, boot_devices.CDROM, False) mock_boot_mode_utils.sync_boot_mode.assert_called_once_with(task) |