The ironic_python_agent.tests.unit.test_hardware Module

class ironic_python_agent.tests.unit.test_hardware.FakeHardwareManager(hardware_support)[source]

Bases: ironic_python_agent.hardware.GenericHardwareManager

evaluate_hardware_support()[source]
class ironic_python_agent.tests.unit.test_hardware.TestGenericHardwareManager(*args, **kwds)[source]

Bases: ironic_python_agent.tests.unit.base.IronicAgentTest

setUp()[source]
test__ata_erase_security_enabled_set_password_exception(*args, **keywargs)[source]
test__ata_erase_security_enabled_unlock_exception(*args, **keywargs)[source]
test__ata_erase_security_erase_exec_exception(*args, **keywargs)[source]
test__get_device_info(*args, **keywargs)[source]
test__is_virtual_media_device_exists(*args, **keywargs)[source]
test__is_virtual_media_device_exists_no_match(*args, **keywargs)[source]
test__is_virtual_media_device_path_doesnt_exist(*args, **keywargs)[source]
test_collect_lldp_data(*args, **keywargs)[source]
test_collect_lldp_data_decode_exception(*args, **keywargs)[source]
test_collect_lldp_data_netutils_exception(*args, **keywargs)[source]
test_erase_block_device_ata_failed(*args, **keywargs)[source]
test_erase_block_device_ata_failed_continued(*args, **keywargs)[source]
test_erase_block_device_ata_frozen(*args, **keywargs)[source]
test_erase_block_device_ata_security_enabled(*args, **keywargs)[source]
test_erase_block_device_ata_security_enabled_unlock_attempt(*args, **keywargs)[source]
test_erase_block_device_ata_success(*args, **keywargs)[source]
test_erase_block_device_nosecurity_shred(*args, **keywargs)[source]
test_erase_block_device_notsupported_shred(*args, **keywargs)[source]
test_erase_block_device_shred_0_pass_no_zeroize(*args, **keywargs)[source]
test_erase_block_device_shred_fail_oserror(*args, **keywargs)[source]
test_erase_block_device_shred_fail_processerror(*args, **keywargs)[source]
test_erase_block_device_shred_uses_internal_info(*args, **keywargs)[source]
test_erase_block_device_virtual_media(*args, **keywargs)[source]
test_erase_devices(*args, **keywargs)[source]
test_erase_devices_metadata(*args, **keywargs)[source]
test_erase_devices_metadata_error(*args, **keywargs)[source]
test_evaluate_hw_disks_timeout(*args, **keywargs)[source]
test_evaluate_hw_disks_timeout_configured(*args, **keywargs)[source]
test_evaluate_hw_disks_timeout_unconfigured(*args, **keywargs)[source]
test_evaluate_hw_waits_for_disks(*args, **keywargs)[source]
test_evaluate_hw_waits_for_disks_configured(*args, **keywargs)[source]
test_evaluate_hw_waits_for_disks_nonconfigured(*args, **keywargs)[source]
test_get_bios_given_nic_name_ok(*args, **keywargs)[source]
test_get_bios_given_nic_name_oserror(*args, **keywargs)[source]
test_get_bios_given_nic_name_process_exec_err3(*args, **keywargs)[source]
test_get_bios_given_nic_name_process_exec_err4(*args, **keywargs)[source]
test_get_bmc_address(*args, **keywargs)[source]
test_get_bmc_address_virt(*args, **keywargs)[source]
test_get_boot_info_bios(*args, **keywargs)[source]
test_get_boot_info_pxe_interface(*args, **keywargs)[source]
test_get_boot_info_uefi(*args, **keywargs)[source]
test_get_clean_steps(*args, **keywargs)[source]
test_get_cpus(*args, **keywargs)[source]
test_get_cpus2(*args, **keywargs)[source]
test_get_cpus_illegal_flags(*args, **keywargs)[source]
test_get_cpus_no_flags(*args, **keywargs)[source]
test_get_memory_psutil(*args, **keywargs)[source]
test_get_memory_psutil_exception(*args, **keywargs)[source]
test_get_os_install_device(*args, **keywargs)[source]
test_get_os_install_device_fails(*args, **keywargs)[source]

Fail to find device >=4GB w/o root device hints

test_get_os_install_device_root_device_hints_model(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_name(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_no_device_found(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_rotational(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_serial(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_size(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_size_not_int(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_size_str(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_vendor(*args, **keywargs)[source]
test_get_os_install_device_root_device_hints_wwn(*args, **keywargs)[source]
test_get_system_vendor_info(*args, **keywargs)[source]
test_list_all_block_device(*args, **keywargs)[source]
test_list_all_block_device_hctl_fail(*args, **keywargs)[source]
test_list_all_block_device_udev_17(*args, **keywargs)[source]
test_list_all_block_device_with_udev(*args, **keywargs)[source]
test_list_block_devices(*args, **keywargs)[source]
test_list_hardware_info(*args, **keywargs)[source]
test_list_network_interfaces(*args, **keywargs)[source]
test_list_network_interfaces_no_carrier(*args, **keywargs)[source]
test_list_network_interfaces_with_biosdevname(*args, **keywargs)[source]
test_list_network_interfaces_with_lldp(*args, **keywargs)[source]
test_list_network_interfaces_with_lldp_error(*args, **keywargs)[source]
test_list_network_interfaces_with_vendor_info(*args, **keywargs)[source]
test_normal_vs_enhanced_security_erase(*args, **keywargs)[source]
class ironic_python_agent.tests.unit.test_hardware.TestHardwareManagerLoading(*args, **kwds)[source]

Bases: ironic_python_agent.tests.unit.base.IronicAgentTest

setUp()[source]
class ironic_python_agent.tests.unit.test_hardware.TestModuleFunctions(*args, **kwds)[source]

Bases: ironic_python_agent.tests.unit.base.IronicAgentTest

test__check_for_iscsi(*args, **keywargs)[source]
test__check_for_iscsi_no_iscsi(*args, **keywargs)[source]
test__udev_settle(*args, **keywargs)[source]
test_list_all_block_devices_missing(*args, **keywargs)[source]

Test for missing values returned from lsblk

test_list_all_block_devices_success(*args, **keywargs)[source]
test_list_all_block_devices_wrong_block_type(*args, **keywargs)[source]