The ironic.tests.unit.drivers.modules.drac.test_raid Module

Test class for DRAC RAID interface

class ironic.tests.unit.drivers.modules.drac.test_raid.DracCreateRaidConfigurationHelpersTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test__calculate_spans_for_2_disk_and_raid_level_1()[source]
test__calculate_spans_for_7_disk_and_raid_level_10()[source]
test__calculate_spans_for_7_disk_and_raid_level_50()[source]
test__calculate_spans_for_invalid_raid_level()[source]
test__filter_logical_disks_excelude_all()[source]
test__filter_logical_disks_nonroot_only()[source]
test__filter_logical_disks_root_only()[source]
test__find_configuration()[source]
test__find_configuration_all_steps()[source]
test__find_configuration_with_more_than_min_disks_for_raid_level()[source]
test__max_volume_size_mb()[source]
test__volume_usage_per_disk_mb()[source]
class ironic.tests.unit.drivers.modules.drac.test_raid.DracManageVirtualDisksTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_abandon_config(*args, **keywargs)[source]
test_abandon_config_fail(*args, **keywargs)[source]
test_commit_config(*args, **keywargs)[source]
test_commit_config_fail(*args, **keywargs)[source]
test_commit_config_with_reboot(*args, **keywargs)[source]
test_create_virtual_disk(*args, **keywargs)[source]
test_create_virtual_disk_fail(*args, **keywargs)[source]
test_create_virtual_disk_with_optional_attrs(*args, **keywargs)[source]
test_delete_virtual_disk(*args, **keywargs)[source]
test_delete_virtual_disk_fail(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.drac.test_raid.DracQueryRaidConfigurationTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_list_physical_disks(*args, **keywargs)[source]
test_list_physical_disks_fail(*args, **keywargs)[source]
test_list_raid_controllers(*args, **keywargs)[source]
test_list_raid_controllers_fail(*args, **keywargs)[source]
test_list_virtual_disks(*args, **keywargs)[source]
test_list_virtual_disks_fail(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.drac.test_raid.DracRaidInterfaceTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.db.base.DbTestCase

setUp()[source]
test_create_configuration(*args, **keywargs)[source]
test_create_configuration_fails_if_disk_already_reserved(*args, **keywargs)[source]
test_create_configuration_fails_if_not_enough_space(*args, **keywargs)[source]
test_create_configuration_fails_with_sharing_disabled(*args, **keywargs)[source]
test_create_configuration_no_change(*args, **keywargs)[source]
test_create_configuration_with_backing_physical_disks(*args, **keywargs)[source]
test_create_configuration_with_max_size(*args, **keywargs)[source]
test_create_configuration_with_max_size_and_share_physical_disks(*args, **keywargs)[source]
test_create_configuration_with_max_size_without_backing_disks(*args, **keywargs)[source]
test_create_configuration_with_multiple_controllers(*args, **keywargs)[source]
test_create_configuration_with_multiple_max_and_sharing_same_disks(*args, **keywargs)[source]
test_create_configuration_with_nested_raid_level(*args, **keywargs)[source]
test_create_configuration_with_predefined_number_of_phyisical_disks(*args, **keywargs)[source]
test_create_configuration_with_share_physical_disks(*args, **keywargs)[source]
test_delete_configuration(*args, **keywargs)[source]
test_delete_configuration_no_change(*args, **keywargs)[source]
test_get_logical_disks(*args, **keywargs)[source]