The ironic_lib.tests.test_utils Module

class ironic_lib.tests.test_utils.BareMetalUtilsTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

class ironic_lib.tests.test_utils.ExecuteTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_check_exit_code_boolean()[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_with_log_stdout_default()[source]
test_execute_with_log_stdout_false()[source]
test_execute_with_log_stdout_true()[source]
test_execute_with_root_helper()[source]
test_execute_with_root_helper_run_as_root()[source]
test_execute_without_root_helper()[source]
test_execute_without_root_helper_run_as_root()[source]
test_no_retry_on_success()[source]
test_retry_on_failure()[source]
test_unknown_kwargs_raises_error()[source]
class ironic_lib.tests.test_utils.IsHttpUrlTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_is_http_url()[source]
class ironic_lib.tests.test_utils.MatchRootDeviceTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_match_root_device_hints_empty_device_attribute(*args, **keywargs)[source]
test_match_root_device_hints_multiple_hints()[source]
test_match_root_device_hints_multiple_hints2()[source]
test_match_root_device_hints_multiple_hints3()[source]
test_match_root_device_hints_no_device_found()[source]
test_match_root_device_hints_no_operators()[source]
test_match_root_device_hints_one_hint()[source]
test_match_root_device_hints_rotational()[source]
test_match_root_device_hints_rotational_convert_devices_bool()[source]
class ironic_lib.tests.test_utils.MkfsTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_mkfs(*args, **keywargs)[source]
test_mkfs_with_label(*args, **keywargs)[source]
test_mkfs_with_unexpected_error(*args, **keywargs)[source]
test_mkfs_with_unsupported_fs(*args, **keywargs)[source]
class ironic_lib.tests.test_utils.ParseRootDeviceTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test__append_operator_to_hints()[source]
test_extract_hint_operator_and_values_empty_value()[source]
test_extract_hint_operator_and_values_integer()[source]
test_extract_hint_operator_and_values_multiple_values()[source]
test_extract_hint_operator_and_values_multiple_values_space()[source]
test_extract_hint_operator_and_values_no_operator()[source]
test_extract_hint_operator_and_values_single_value()[source]
test_normalize_hint_expression_empty_value()[source]
test_normalize_hint_expression_in()[source]
test_normalize_hint_expression_no_op_no_space()[source]
test_normalize_hint_expression_no_op_space()[source]
test_normalize_hint_expression_op_no_space()[source]
test_normalize_hint_expression_op_space()[source]
test_normalize_hint_expression_or()[source]
test_parse_root_device_hints_convert_rotational()[source]
test_parse_root_device_hints_convert_size()[source]
test_parse_root_device_hints_int_or()[source]
test_parse_root_device_hints_int_or_invalid()[source]
test_parse_root_device_hints_invalid_model()[source]
test_parse_root_device_hints_invalid_name()[source]
test_parse_root_device_hints_invalid_rotational()[source]
test_parse_root_device_hints_invalid_serial()[source]
test_parse_root_device_hints_invalid_size()[source]
test_parse_root_device_hints_invalid_vendor()[source]
test_parse_root_device_hints_invalid_wwn()[source]
test_parse_root_device_hints_invalid_wwn_vendor_extension()[source]
test_parse_root_device_hints_invalid_wwn_with_extension()[source]
test_parse_root_device_hints_no_hints()[source]
test_parse_root_device_hints_non_existent_hint()[source]
test_parse_root_device_hints_string_or_space()[source]
test_parse_root_device_hints_with_operators()[source]
test_parse_root_device_hints_without_operators()[source]