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

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

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

setUp()[source]
test_agent_add_clean_params()[source]
test_agent_get_clean_steps()[source]
test_build_agent_options_conf()[source]
test_build_agent_options_keystone(*args, **keywargs)[source]
test_build_agent_options_root_device_hints()[source]
test_execute_clean_step(*args, **keywargs)[source]
test_execute_clean_step_running(*args, **keywargs)[source]
test_execute_clean_step_version_mismatch(*args, **keywargs)[source]
test_get_clean_steps_custom_interface()[source]
test_get_clean_steps_missing_steps()[source]
test_get_clean_steps_override_priorities()[source]
test_get_clean_steps_override_priorities_none()[source]
test_prepare_inband_cleaning()[source]
test_prepare_inband_cleaning_manage_boot_false()[source]
test_prepare_inband_cleaning_ports_neutron(*args, **keywargs)[source]
test_prepare_inband_cleaning_ports_out_of_tree()[source]
test_prepare_inband_cleaning_ports_out_of_tree_no_vif_port_id()[source]
test_prepare_inband_cleaning_ports_provider_does_not_create(*args, **keywargs)[source]
test_tear_down_inband_cleaning()[source]
test_tear_down_inband_cleaning_manage_boot_false()[source]
test_tear_down_inband_cleaning_ports_neutron(*args, **keywargs)[source]
test_tear_down_inband_cleaning_ports_out_of_tree(*args, **keywargs)[source]
test_tear_down_inband_cleaning_ports_provider_does_not_delete(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.ISCSISetupAndHandleErrorsTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_no_parent_device(*args, **keywargs)[source]
test_parent_device_yield(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.InstanceInfoTestCase(*args, **kwargs)[source]

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

test__check_disk_layout_unchanged()[source]
test__check_disk_layout_unchanged_fails()[source]
test_parse_instance_info_configdrive()[source]
test_parse_instance_info_good()[source]
test_parse_instance_info_invalid_ephemeral_disk()[source]
test_parse_instance_info_invalid_ephemeral_gb()[source]
test_parse_instance_info_invalid_preserve_ephemeral()[source]
test_parse_instance_info_invalid_root_gb()[source]
test_parse_instance_info_missing_instance_source()[source]
test_parse_instance_info_missing_root_gb()[source]
test_parse_instance_info_nonglance_image()[source]
test_parse_instance_info_nonglance_image_no_kernel()[source]
test_parse_instance_info_unicode_swap_mb()[source]
test_parse_instance_info_valid_ephemeral_gb()[source]
test_parse_instance_info_valid_ephemeral_missing_format()[source]
test_parse_instance_info_valid_preserve_ephemeral_false()[source]
test_parse_instance_info_valid_preserve_ephemeral_true()[source]
test_parse_instance_info_whole_disk_image()[source]
test_parse_instance_info_whole_disk_image_missing_root()[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.OtherFunctionTestCase(*args, **kwargs)[source]

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

setUp()[source]
test_fetch_images(*args, **keywargs)[source]
test_fetch_images_fail(*args, **keywargs)[source]
test_get_boot_option(*args, **keywargs)[source]
test_get_boot_option_default_value(*args, **keywargs)[source]
test_get_dev(*args, **keywargs)[source]
test_get_ironic_api_url_fail(*args, **keywargs)[source]
test_get_ironic_api_url_from_config(*args, **keywargs)[source]
test_get_ironic_api_url_from_keystone(*args, **keywargs)[source]
test_parse_root_device_hints(*args, **keywargs)[source]
test_parse_root_device_hints_invalid_hints(*args, **keywargs)[source]
test_parse_root_device_hints_invalid_rotational(*args, **keywargs)[source]
test_parse_root_device_hints_invalid_size(*args, **keywargs)[source]
test_parse_root_device_hints_no_hints(*args, **keywargs)[source]
test_parse_root_device_hints_string_space(*args, **keywargs)[source]
test_set_failed_state(*args, **keywargs)[source]
test_set_failed_state_collect_deploy_logs(*args, **keywargs)[source]
test_set_failed_state_collect_deploy_logs_never(*args, **keywargs)[source]
test_set_failed_state_collect_deploy_logs_overide(*args, **keywargs)[source]
test_set_failed_state_no_poweroff(*args, **keywargs)[source]
test_warn_about_unsafe_shred_parameters_defaults(*args, **keywargs)[source]
test_warn_about_unsafe_shred_parameters_produces_a_warning(*args, **keywargs)[source]
test_warn_about_unsafe_shred_parameters_random_no_zeros(*args, **keywargs)[source]
test_warn_about_unsafe_shred_parameters_zeros(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.ParseInstanceInfoCapabilitiesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_all_supported_capabilities()[source]
test_get_boot_mode_for_deploy_using_capabilities()[source]
test_get_boot_mode_for_deploy_using_instance_info()[source]
test_get_boot_mode_for_deploy_using_instance_info_cap()[source]
test_get_disk_label()[source]
test_is_secure_boot_requested_false()[source]
test_is_secure_boot_requested_invalid()[source]
test_is_secure_boot_requested_true()[source]
test_is_trusted_boot_requested_false()[source]
test_is_trusted_boot_requested_invalid()[source]
test_is_trusted_boot_requested_true()[source]
test_parse_instance_info_capabilities()[source]
test_parse_instance_info_capabilities_string()[source]
test_parse_instance_info_invalid_type()[source]
test_validate_boot_mode_capability()[source]
test_validate_boot_mode_capability_instance_info()[source]
test_validate_boot_mode_capability_instance_info_with_exc()[source]
test_validate_boot_mode_capability_with_exc()[source]
test_validate_trusted_boot_capability()[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_always_logout_and_delete_iscsi(*args, **keywargs)[source]

Check if logout_iscsi() and delete_iscsi() are called.

Make sure that logout_iscsi() and delete_iscsi() are called once login_iscsi() is invoked.

test_check_file_system_for_iscsi_device(*args, **keywargs)[source]
test_check_file_system_for_iscsi_device_raises(*args, **keywargs)[source]
test_deploy_partition_image_disk_label(*args, **keywargs)[source]
test_deploy_partition_image_image_exceeds_root_partition(*args, **keywargs)[source]
test_deploy_partition_image_localboot(*args, **keywargs)[source]
test_deploy_partition_image_localboot_bios(*args, **keywargs)[source]
test_deploy_partition_image_localboot_uefi(*args, **keywargs)[source]

Check loosely all functions are called with right args.

test_deploy_partition_image_netboot(*args, **keywargs)[source]
test_deploy_partition_image_netboot_bios(*args, **keywargs)[source]
test_deploy_partition_image_netboot_uefi(*args, **keywargs)[source]
test_deploy_partition_image_preserve_ephemeral(*args, **keywargs)[source]

Check if all functions are called with right args.

test_deploy_partition_image_with_configdrive(*args, **keywargs)[source]

Check loosely all functions are called with right args.

test_deploy_partition_image_with_ephemeral(*args, **keywargs)[source]

Check loosely all functions are called with right args.

test_deploy_partition_image_without_boot_option(*args, **keywargs)[source]
test_deploy_partition_image_without_swap(*args, **keywargs)[source]

Check loosely all functions are called with right args.

test_deploy_partition_image_wo_boot_option_and_wo_boot_mode(*args, **keywargs)[source]
test_deploy_whole_disk_image(*args, **keywargs)[source]

Check loosely all functions are called with right args.

test_deploy_whole_disk_image_with_config_drive(*args, **keywargs)[source]

Check loosely all functions are called with right args.

test_force_iscsi_lun_update(*args, **keywargs)[source]
test_login_iscsi_calls_verify_and_update(*args, **keywargs)[source]
test_verify_iscsi_connection(*args, **keywargs)[source]
test_verify_iscsi_connection_raises(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.SwitchPxeConfigTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_switch_ipxe_config_partition_image()[source]
test_switch_ipxe_config_whole_disk_image()[source]
test_switch_pxe_config_partition_image()[source]
test_switch_pxe_config_trusted_boot()[source]
test_switch_pxe_config_whole_disk_image()[source]
test_switch_uefi_elilo_config_whole_disk_image()[source]
test_switch_uefi_elilo_pxe_config_partition_image()[source]
test_switch_uefi_grub_config_whole_disk_image()[source]
test_switch_uefi_grub_pxe_config_partition_image()[source]
test_switch_uefi_ipxe_config_partition_image()[source]
test_switch_uefi_ipxe_config_whole_disk_image()[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.TrySetBootDeviceTestCase(*args, **kwargs)[source]

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

setUp()[source]
test_try_set_boot_device_ipmifailure_bios(*args, **keywargs)[source]
test_try_set_boot_device_ipmifailure_uefi(*args, **keywargs)[source]
test_try_set_boot_device_okay(*args, **keywargs)[source]
test_try_set_boot_device_some_other_exception(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.ValidateImagePropertiesTestCase(*args, **kwargs)[source]

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

test_validate_image_properties_glance_image(*args, **keywargs)[source]
test_validate_image_properties_glance_image_missing_prop(*args, **keywargs)[source]
test_validate_image_properties_glance_image_not_authorized(*args, **keywargs)[source]
test_validate_image_properties_glance_image_not_found(*args, **keywargs)[source]
test_validate_image_properties_invalid_image_href()[source]
test_validate_image_properties_nonglance_image(*args, **keywargs)[source]
test_validate_image_properties_nonglance_image_validation_fail(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.ValidateParametersTestCase(*args, **kwargs)[source]

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

test__get_img_instance_info_good()[source]
test__get_img_instance_info_good_non_glance_image()[source]
test__get_img_instance_info_missing_image_source()[source]
test__get_img_instance_info_non_glance_image_missing_kernel()[source]
test__get_img_instance_info_non_glance_image_missing_ramdisk()[source]
test__get_img_instance_info_whole_disk_image()[source]
class ironic.tests.unit.drivers.modules.test_deploy_utils.VirtualMediaDeployUtilsTestCase(*args, **kwargs)[source]

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

setUp()[source]
test_get_single_nic_with_cleaning_vif_port_id()[source]
test_get_single_nic_with_provisioning_vif_port_id()[source]
test_get_single_nic_with_vif_port_id()[source]

Project Source

This Page