The ironic.tests.unit.drivers.modules.test_ipmitool Module

Test class for IPMITool driver module.

class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolCheckInitTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_console_init_calls(*args, **keywargs)[source]
test_console_init_calls_already_checked(*args, **keywargs)[source]
test_console_init_calls_for_socat(*args, **keywargs)[source]
test_console_init_calls_for_socat_already_checked(*args, **keywargs)[source]
test_management_init_calls(*args, **keywargs)[source]
test_management_init_calls_already_checked(*args, **keywargs)[source]
test_power_init_calls(*args, **keywargs)[source]
test_power_init_calls_already_checked(*args, **keywargs)[source]
test_power_init_calls_raises_1(*args, **keywargs)[source]
test_power_init_calls_raises_2(*args, **keywargs)[source]
test_power_init_calls_raises_3(*args, **keywargs)[source]
test_vendor_passthru_init_calls(*args, **keywargs)[source]
test_vendor_passthru_init_calls_already_checked(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolCheckOptionSupportedTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_check_all_options_fail(*args, **keywargs)[source]
test_check_all_options_no_ipmitool(*args, **keywargs)[source]
test_check_all_options_pass(*args, **keywargs)[source]
test_check_dual_bridge_fail(*args, **keywargs)[source]
test_check_dual_bridge_no_ipmitool(*args, **keywargs)[source]
test_check_dual_bridge_pass(*args, **keywargs)[source]
test_check_single_bridge_fail(*args, **keywargs)[source]
test_check_single_bridge_no_ipmitool(*args, **keywargs)[source]
test_check_single_bridge_pass(*args, **keywargs)[source]
test_check_timing_fail(*args, **keywargs)[source]
test_check_timing_no_ipmitool(*args, **keywargs)[source]
test_check_timing_pass(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolDriverTestCase(*args, **kwargs)[source]

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

setUp(terminal=None)[source]
test__bmc_reset_cold(*args, **keywargs)[source]
test__bmc_reset_fail(*args, **keywargs)[source]
test__bmc_reset_ok(*args, **keywargs)[source]
test__get_ipmi_cmd()[source]
test__get_ipmi_cmd_without_user()[source]
test__parse_ipmi_sensor_data_failed()[source]
test__parse_ipmi_sensor_data_missing_sensor_reading()[source]
test__parse_ipmi_sensor_data_ok()[source]
test__start_console(*args, **keywargs)[source]
test__start_console_empty_password(*args, **keywargs)[source]
test__start_console_fail(*args, **keywargs)[source]
test__start_console_fail_nodir(*args, **keywargs)[source]
test_console_validate()[source]
test_console_validate_invalid_port()[source]
test_console_validate_missing_port()[source]
test_console_validate_wrong_ipmi_protocol_version()[source]
test_dump_sdr_fail(*args, **keywargs)[source]
test_dump_sdr_ok(*args, **keywargs)[source]
test_get_console(*args, **keywargs)[source]
test_get_force_boot_device_persistent()[source]
test_get_power_state(*args, **keywargs)[source]
test_get_power_state_exception(*args, **keywargs)[source]
test_get_properties()[source]
test_management_interface_force_set_boot_device_ok(*args, **keywargs)[source]
test_management_interface_get_boot_device(*args, **keywargs)[source]
test_management_interface_get_boot_device_fail(*args, **keywargs)[source]
test_management_interface_get_boot_device_persistent(*args, **keywargs)[source]
test_management_interface_get_boot_device_unknown_dev(*args, **keywargs)[source]
test_management_interface_get_supported_boot_devices()[source]
test_management_interface_inject_nmi_fail(*args, **keywargs)[source]
test_management_interface_inject_nmi_ok(*args, **keywargs)[source]
test_management_interface_set_boot_device_bad_device()[source]
test_management_interface_set_boot_device_exec_failed(*args, **keywargs)[source]
test_management_interface_set_boot_device_ok(*args, **keywargs)[source]
test_management_interface_set_boot_device_persistent(*args, **keywargs)[source]
test_management_interface_set_boot_device_uefi(*args, **keywargs)[source]
test_management_interface_set_boot_device_uefi_and_persistent(*args, **keywargs)[source]
test_management_interface_set_boot_device_unknown_exception(*args, **keywargs)[source]
test_management_interface_validate_fail()[source]
test_management_interface_validate_good()[source]
test_power_validate(*args, **keywargs)[source]
test_reboot_fail_power_off(*args, **keywargs)[source]
test_reboot_fail_power_on(*args, **keywargs)[source]
test_reboot_ok(*args, **keywargs)[source]
test_reboot_timeout_fail(*args, **keywargs)[source]
test_reboot_timeout_ok(*args, **keywargs)[source]
test_send_raw_bytes_fail(*args, **keywargs)[source]
test_send_raw_bytes_ok(*args, **keywargs)[source]
test_send_raw_bytes_returns(*args, **keywargs)[source]
test_set_power_invalid_state()[source]
test_set_power_off_ok(*args, **keywargs)[source]
test_set_power_off_timeout_ok(*args, **keywargs)[source]
test_set_power_on_fail(*args, **keywargs)[source]
test_set_power_on_ok(*args, **keywargs)[source]
test_set_power_on_timeout_fail(*args, **keywargs)[source]
test_set_power_on_timeout_ok(*args, **keywargs)[source]
test_set_power_on_with_next_boot(*args, **keywargs)[source]
test_set_power_on_with_next_boot_timeout(*args, **keywargs)[source]
test_set_soft_power_off_ok(*args, **keywargs)[source]
test_set_soft_power_off_timeout_ok(*args, **keywargs)[source]
test_set_soft_reboot_ok(*args, **keywargs)[source]
test_set_soft_reboot_timeout_fail(*args, **keywargs)[source]
test_set_soft_reboot_timeout_ok(*args, **keywargs)[source]
test_start_console(*args, **keywargs)[source]
test_stop_console(*args, **keywargs)[source]
test_stop_console_fail(*args, **keywargs)[source]
test_vendor_passthru_call_bmc_reset_cold()[source]
test_vendor_passthru_call_bmc_reset_warm()[source]
test_vendor_passthru_call_send_raw_bytes(*args, **keywargs)[source]
test_vendor_passthru_driver_routes()[source]
test_vendor_passthru_validate__bmc_reset_cold_good()[source]
test_vendor_passthru_validate__bmc_reset_good()[source]
test_vendor_passthru_validate__bmc_reset_warm_good()[source]
test_vendor_passthru_validate__parse_driver_info_fail(*args, **keywargs)[source]
test_vendor_passthru_validate__send_raw_bytes_fail()[source]
test_vendor_passthru_validate__send_raw_bytes_good()[source]
test_vendor_passthru_vendor_routes()[source]
class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolPrivateMethodTestCase(*args, **kwargs)[source]

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

setUp()[source]
test___set_and_wait_no_needless_status_polling(*args, **keywargs)[source]
test__exec_ipmitool_IPMI_version_1_5(*args, **keywargs)[source]
test__exec_ipmitool_exception(*args, **keywargs)[source]
test__exec_ipmitool_exception_non_retryable_failure(*args, **keywargs)[source]
test__exec_ipmitool_exception_retries_exceeded(*args, **keywargs)[source]
test__exec_ipmitool_exception_retry(*args, **keywargs)[source]
test__exec_ipmitool_first_call_to_address(*args, **keywargs)[source]
test__exec_ipmitool_second_call_to_address_no_sleep(*args, **keywargs)[source]
test__exec_ipmitool_second_call_to_address_sleep(*args, **keywargs)[source]
test__exec_ipmitool_two_calls_to_diff_address(*args, **keywargs)[source]
test__exec_ipmitool_with_check_exit_code(*args, **keywargs)[source]
test__exec_ipmitool_with_dual_bridging(*args, **keywargs)[source]
test__exec_ipmitool_with_empty_password(*args, **keywargs)[source]
test__exec_ipmitool_with_empty_username(*args, **keywargs)[source]
test__exec_ipmitool_with_port(*args, **keywargs)[source]
test__exec_ipmitool_with_single_bridging(*args, **keywargs)[source]
test__exec_ipmitool_with_timing(*args, **keywargs)[source]
test__exec_ipmitool_without_password(*args, **keywargs)[source]
test__exec_ipmitool_without_timing(*args, **keywargs)[source]
test__exec_ipmitool_without_username(*args, **keywargs)[source]
test__make_password_file_caller_exception(*args, **keywargs)[source]
test__make_password_file_str_password(*args, **keywargs)[source]
test__make_password_file_tempfile_known_exception(*args, **keywargs)[source]
test__make_password_file_tempfile_unknown_exception(*args, **keywargs)[source]
test__make_password_file_with_numeric_password(*args, **keywargs)[source]
test__make_password_file_write_exception(*args, **keywargs)[source]
test__parse_driver_info(*args, **keywargs)[source]
test__parse_driver_info_have_credentials(*args, **keywargs)[source]

Ensure no warnings generated if have credentials

test__parse_driver_info_invalid_ipmi_port(*args, **keywargs)[source]
test__parse_driver_info_invalid_ipmi_prot_version(*args, **keywargs)[source]
test__parse_driver_info_ipmi_port_valid(*args, **keywargs)[source]
test__parse_driver_info_ipmi_prot_version_1_5(*args, **keywargs)[source]
test__parse_driver_info_numeric_password(*args, **keywargs)[source]
test__parse_driver_info_undefined_credentials(*args, **keywargs)[source]
test__parse_driver_info_with_dual_bridging_missing_parameters(*args, **keywargs)[source]
test__parse_driver_info_with_dual_bridging_not_supported(*args, **keywargs)[source]
test__parse_driver_info_with_dual_bridging_pass(*args, **keywargs)[source]
test__parse_driver_info_with_invalid_bridging_type(*args, **keywargs)[source]
test__parse_driver_info_with_no_bridging(*args, **keywargs)[source]
test__parse_driver_info_with_single_bridging_missing_parameters(*args, **keywargs)[source]
test__parse_driver_info_with_single_bridging_not_supported(*args, **keywargs)[source]
test__parse_driver_info_with_single_bridging_pass(*args, **keywargs)[source]
test__power_on_max_retries(*args, **keywargs)[source]
test__power_status_error(*args, **keywargs)[source]
test__power_status_exception(*args, **keywargs)[source]
test__power_status_off(*args, **keywargs)[source]
test__power_status_on(*args, **keywargs)[source]
test__soft_power_off(*args, **keywargs)[source]
test__soft_power_off_max_retries(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolSocatDriverTestCase(*args, **kwargs)[source]

Bases: ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolDriverTestCase

setUp()[source]
test__exec_stop_console(*args, **keywargs)[source]
test__get_ipmi_cmd()[source]
test__get_ipmi_cmd_without_user()[source]
test__start_console(*args, **keywargs)[source]
test__start_console_empty_password(*args, **keywargs)[source]
test__start_console_fail(*args, **keywargs)[source]
test__start_console_fail_nodir(*args, **keywargs)[source]
test_get_console(*args, **keywargs)[source]
test_start_console(*args, **keywargs)[source]
test_stop_console(*args, **keywargs)[source]
test_stop_console_fail(*args, **keywargs)[source]