diff options
Diffstat (limited to 'ironic/tests/unit/drivers/modules/redfish/test_boot.py')
-rw-r--r-- | ironic/tests/unit/drivers/modules/redfish/test_boot.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ironic/tests/unit/drivers/modules/redfish/test_boot.py b/ironic/tests/unit/drivers/modules/redfish/test_boot.py index e69c29dca..799370394 100644 --- a/ironic/tests/unit/drivers/modules/redfish/test_boot.py +++ b/ironic/tests/unit/drivers/modules/redfish/test_boot.py @@ -58,6 +58,16 @@ class RedfishVirtualMediaBootTestCase(db_base.DbTestCase): 'Unable to import the sushy library', redfish_boot.RedfishVirtualMediaBoot) + @mock.patch.object(deploy_utils, 'get_boot_option', lambda node: 'ramdisk') + def test_parse_driver_info_ramdisk(self): + with task_manager.acquire(self.context, self.node.uuid, + shared=True) as task: + task.node.driver_info = {} + task.node.automated_clean = False + actual_driver_info = redfish_boot._parse_driver_info(task.node) + self.assertEqual({'can_provide_config': False}, + actual_driver_info) + def test_parse_driver_info_deploy(self): with task_manager.acquire(self.context, self.node.uuid, shared=True) as task: |