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

Test class for Ironic SSH power driver.

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

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

setUp()[source]
test__validate_info_ssh_connect_failed(*args, **keywargs)[source]
test_console_validate()[source]
test_console_validate_invalid_port()[source]
test_console_validate_missing_port()[source]
test_console_validate_not_virsh()[source]
test_get_boot_device_not_supported(*args, **keywargs)[source]
test_get_console(*args, **keywargs)[source]
test_get_power_state_vmware(*args, **keywargs)[source]
test_get_power_state_xenserver(*args, **keywargs)[source]
test_get_properties()[source]
test_management_interface_get_boot_device_parallels(*args, **keywargs)[source]
test_management_interface_get_boot_device_vbox(*args, **keywargs)[source]
test_management_interface_get_boot_device_virsh(*args, **keywargs)[source]
test_management_interface_get_boot_device_xenserver(*args, **keywargs)[source]
test_management_interface_get_supported_boot_devices()[source]
test_management_interface_set_boot_device_parallels_ok(*args, **keywargs)[source]
test_management_interface_set_boot_device_vbox_ok(*args, **keywargs)[source]
test_management_interface_set_boot_device_vbox_with_power_on(*args, **keywargs)[source]
test_management_interface_set_boot_device_virsh_ok(*args, **keywargs)[source]
test_management_interface_set_boot_device_xenserver_ok(*args, **keywargs)[source]
test_management_interface_validate_fail()[source]
test_management_interface_validate_good()[source]
test_reboot_fail(*args, **keywargs)[source]
test_reboot_good(*args, **keywargs)[source]
test_set_boot_device_bad_device()[source]
test_set_boot_device_not_supported(*args, **keywargs)[source]
test_set_power_state_bad_state(*args, **keywargs)[source]
test_set_power_state_off_fail(*args, **keywargs)[source]
test_set_power_state_off_good(*args, **keywargs)[source]
test_set_power_state_on_fail(*args, **keywargs)[source]
test_set_power_state_on_good(*args, **keywargs)[source]
test_start_command_vbox(*args, **keywargs)[source]
test_start_command_vbox_headless(*args, **keywargs)[source]
test_start_command_xenserver(*args, **keywargs)[source]
test_start_console(*args, **keywargs)[source]
test_start_console_fail(*args, **keywargs)[source]
test_start_console_fail_nodir(*args, **keywargs)[source]
test_stop_command_xenserver(*args, **keywargs)[source]
test_stop_console(*args, **keywargs)[source]
test_stop_console_fail(*args, **keywargs)[source]
test_validate_fail_no_port()[source]
class ironic.tests.unit.drivers.modules.test_ssh.SSHPrivateMethodsTestCase(*args, **kwargs)[source]

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

setUp()[source]
test__get_connection_client(*args, **keywargs)[source]
test__get_connection_exception(*args, **keywargs)[source]
test__get_hosts_name_for_node_exception(*args, **keywargs)[source]
test__get_hosts_name_for_node_match(*args, **keywargs)[source]
test__get_hosts_name_for_node_match_after_retry(*args, **keywargs)[source]
test__get_hosts_name_for_node_no_match(*args, **keywargs)[source]
test__get_power_status_correct_node(*args, **keywargs)[source]
test__get_power_status_exception(*args, **keywargs)[source]
test__get_power_status_off(*args, **keywargs)[source]
test__get_power_status_on(*args, **keywargs)[source]
test__get_power_status_on_unquoted(*args, **keywargs)[source]
test__power_off_exception(*args, **keywargs)[source]
test__power_off_fail(*args, **keywargs)[source]
test__power_off_good(*args, **keywargs)[source]
test__power_on_exception(*args, **keywargs)[source]
test__power_on_fail(*args, **keywargs)[source]
test__power_on_good(*args, **keywargs)[source]
test__ssh_execute(*args, **keywargs)[source]
test__ssh_execute_exception(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_ssh.SSHValidateParametersTestCase(*args, **kwargs)[source]

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

test__get_boot_device_map_exception()[source]
test__get_boot_device_map_parallels()[source]
test__get_boot_device_map_vbox()[source]
test__get_boot_device_map_xenserver()[source]
test__parse_driver_info_bad_file()[source]
test__parse_driver_info_good_file()[source]
test__parse_driver_info_good_file_with_passphrase()[source]
test__parse_driver_info_good_key()[source]
test__parse_driver_info_good_key_with_passphrase()[source]
test__parse_driver_info_good_password()[source]
test__parse_driver_info_invalid_creds()[source]
test__parse_driver_info_missing_host()[source]
test__parse_driver_info_missing_user()[source]
test__parse_driver_info_missing_virt_type()[source]
test__parse_driver_info_ssh_port_wrong_type()[source]
test__parse_driver_info_too_many()[source]
test__parse_driver_info_with_custom_libvirt_uri()[source]