def setUp(self): super(Ilo5RAIDTestCase, self).setUp() self.driver = mock.Mock(raid=ilo_raid.Ilo5RAID()) self.target_raid_config = { "logical_disks": [{ 'size_gb': 200, 'raid_level': 0, 'is_root_volume': True }, { 'size_gb': 200, 'raid_level': 5 }] } self.clean_step = {'step': 'create_configuration', 'interface': 'raid'} n = { 'driver': 'ilo5', 'driver_info': INFO_DICT, 'target_raid_config': self.target_raid_config, 'clean_step': self.clean_step, } self.config(enabled_hardware_types=['ilo5'], enabled_boot_interfaces=['ilo-virtual-media'], enabled_console_interfaces=['ilo'], enabled_deploy_interfaces=['iscsi'], enabled_inspect_interfaces=['ilo'], enabled_management_interfaces=['ilo'], enabled_power_interfaces=['ilo'], enabled_raid_interfaces=['ilo5']) self.node = obj_utils.create_test_node(self.context, **n)
def setUp(self): super(IbmcRAIDTestCase, self).setUp() self.driver = mock.Mock(raid=ilo_raid.Ilo5RAID()) self.target_raid_config = { "logical_disks": [{ 'size_gb': 200, 'raid_level': 0, 'is_root_volume': True }, { 'size_gb': 'MAX', 'raid_level': 5 }] } self.node.target_raid_config = self.target_raid_config self.node.save()