The ironic.tests.unit.common.test_utils Module

class ironic.tests.unit.common.test_utils.BareMetalUtilsTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

class ironic.tests.unit.common.test_utils.ExecuteTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_check_exit_code_boolean()[source]
test_execute_get_root_helper()[source]
test_execute_not_use_standard_locale(*args, **keywargs)[source]
test_execute_use_standard_locale_no_env_variables(*args, **keywargs)[source]
test_execute_use_standard_locale_with_env_variables(*args, **keywargs)[source]
test_execute_without_root_helper()[source]
test_no_retry_on_success()[source]
test_retry_on_failure()[source]
test_unknown_kwargs_raises_error()[source]
class ironic.tests.unit.common.test_utils.GenericUtilsTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test__get_hash_object(*args, **keywargs)[source]
test__get_hash_object_throws_for_invalid_or_unsupported_hash_name()[source]
test_file_has_content_differ()[source]
test_file_has_content_equal()[source]
test_hash_file_for_md5()[source]
test_hash_file_for_sha1()[source]
test_hash_file_for_sha512()[source]
test_hash_file_throws_for_invalid_or_unsupported_hash()[source]
test_is_hostname_safe()[source]
test_is_valid_datapath_id()[source]
test_is_valid_logical_name()[source]
test_is_valid_no_proxy()[source]
test_safe_rstrip()[source]
test_safe_rstrip_not_raises_exceptions()[source]
test_unix_file_modification_datetime(*args, **keywargs)[source]
test_validate_and_normalize_datapath_id()[source]
test_validate_and_normalize_mac()[source]
test_validate_and_normalize_mac_invalid_format()[source]
test_warn_about_deprecated_extra_vif_port_id(*args, **keywargs)[source]
class ironic.tests.unit.common.test_utils.GetUpdatedCapabilitiesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test_get_updated_capabilities()[source]
test_get_updated_capabilities_add_to_existing_capabilities()[source]
test_get_updated_capabilities_capabilities_not_dict()[source]
test_get_updated_capabilities_invalid_capabilities()[source]
test_get_updated_capabilities_multiple_keys()[source]
test_get_updated_capabilities_replace_to_existing_capabilities()[source]
test_validate_network_port()[source]
test_validate_network_port_fail()[source]
class ironic.tests.unit.common.test_utils.JinjaTemplatingTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_render_file(*args, **keywargs)[source]
test_render_string()[source]
class ironic.tests.unit.common.test_utils.TempFilesTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test__check_dir_free_space_ok(*args, **keywargs)[source]
test__check_dir_writable_not_writable(*args, **keywargs)[source]
test__check_dir_writable_ok(*args, **keywargs)[source]
test_check_dir_free_space_raises(*args, **keywargs)[source]
test_check_dir_no_dir(*args, **keywargs)[source]
test_check_dir_ok(*args, **keywargs)[source]
test_check_dir_with_pass_in(*args, **keywargs)[source]
test_tempdir()[source]
test_tempdir_mocked(*args, **keywargs)[source]
test_tempdir_mocked_error_on_rmtree(*args, **keywargs)[source]