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

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, **kwds)[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, **kwds)[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, **kwds)[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_debug()[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_already_off(*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, **kwds)[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_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()[source]
test__make_password_file_str_password()[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()[source]
test__make_password_file_write_exception()[source]
test__parse_driver_info()[source]
test__parse_driver_info_have_credentials(*args, **keywargs)[source]

Ensure no warnings generated if have credentials

test__parse_driver_info_invalid_ipmi_port()[source]
test__parse_driver_info_invalid_ipmi_prot_version()[source]
test__parse_driver_info_ipmi_port_valid()[source]
test__parse_driver_info_ipmi_prot_version_1_5()[source]
test__parse_driver_info_numeric_password()[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]
test_exec_ipmitool_exception_non_retryable_failure_bmc_initialization_in_progress(*args, **keywargs)
test_exec_ipmitool_exception_non_retryable_failure_insufficient_resources_for_session(*args, **keywargs)
test_exec_ipmitool_exception_non_retryable_failure_node_busy(*args, **keywargs)
test_exec_ipmitool_exception_non_retryable_failure_out_of_space(*args, **keywargs)
test_exec_ipmitool_exception_non_retryable_failure_timeout(*args, **keywargs)
test_exec_ipmitool_exception_retries_exceeded_bmc_initialization_in_progress(*args, **keywargs)
test_exec_ipmitool_exception_retries_exceeded_insufficient_resources_for_session(*args, **keywargs)
test_exec_ipmitool_exception_retries_exceeded_node_busy(*args, **keywargs)
test_exec_ipmitool_exception_retries_exceeded_out_of_space(*args, **keywargs)
test_exec_ipmitool_exception_retries_exceeded_timeout(*args, **keywargs)
test_exec_ipmitool_exception_retry_bmc_initialization_in_progress(*args, **keywargs)
test_exec_ipmitool_exception_retry_insufficient_resources_for_session(*args, **keywargs)
test_exec_ipmitool_exception_retry_node_busy(*args, **keywargs)
test_exec_ipmitool_exception_retry_out_of_space(*args, **keywargs)
test_exec_ipmitool_exception_retry_timeout(*args, **keywargs)
class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolPrivateMethodTestCaseMeta[source]

Bases: type

Generate and inject parametrized test cases

class ironic.tests.unit.drivers.modules.test_ipmitool.IPMIToolSocatDriverTestCase(*args, **kwds)[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]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.