def test__flexibly_program_boot_order_for_cdrom(self, mock_get_drac_client): settings = drac_mgmt._flexibly_program_boot_order( ironic.common.boot_devices.CDROM, drac_boot_mode='Uefi') expected_settings = {'SetBootOrderFqdd1': 'Optical.*.*'} self.assertEqual(expected_settings, settings)
def test__flexibly_program_boot_order_for_disk_and_bios( self, mock_get_drac_client): settings = drac_mgmt._flexibly_program_boot_order( ironic.common.boot_devices.DISK, drac_boot_mode='Bios') expected_settings = {'SetBootOrderFqdd1': 'HardDisk.List.1-1'} self.assertEqual(expected_settings, settings)
def test__flexibly_program_boot_order_for_cdrom(self, mock_get_drac_client): settings = drac_mgmt._flexibly_program_boot_order( ironic.common.boot_devices.CDROM, drac_boot_mode='Uefi') expected_settings = {'SetBootOrderFqdd1': 'Optical.*.*'} self.assertEqual(expected_settings, settings)
def test__flexibly_program_boot_order_for_disk_and_bios( self, mock_get_drac_client): settings = drac_mgmt._flexibly_program_boot_order( ironic.common.boot_devices.DISK, drac_boot_mode='Bios') expected_settings = {'SetBootOrderFqdd1': 'HardDisk.List.1-1'} self.assertEqual(expected_settings, settings)
def test__flexibly_program_boot_order_for_disk_and_uefi( self, mock_get_drac_client): settings = drac_mgmt._flexibly_program_boot_order( ironic.common.boot_devices.DISK, drac_boot_mode='Uefi') expected_settings = { 'SetBootOrderFqdd1': '*.*.*', 'SetBootOrderFqdd2': 'NIC.*.*', 'SetBootOrderFqdd3': 'Optical.*.*', 'SetBootOrderFqdd4': 'Floppy.*.*', } self.assertEqual(expected_settings, settings)
def test__flexibly_program_boot_order_for_disk_and_uefi( self, mock_get_drac_client): settings = drac_mgmt._flexibly_program_boot_order( ironic.common.boot_devices.DISK, drac_boot_mode='Uefi') expected_settings = { 'SetBootOrderFqdd1': '*.*.*', 'SetBootOrderFqdd2': 'NIC.*.*', 'SetBootOrderFqdd3': 'Optical.*.*', 'SetBootOrderFqdd4': 'Floppy.*.*', } self.assertEqual(expected_settings, settings)