OpenStack
Home
Projects
User Stories
Community
Blog
Wiki
Documentation
The
ironic.tests.unit.common.test_utils
Module
¶
class
ironic.tests.unit.common.test_utils.
BareMetalUtilsTestCase
(
*args
,
**kwargs
)
[source]
¶
Bases:
ironic.tests.base.TestCase
test_create_link
(
)
[source]
¶
test_create_link_EEXIST
(
)
[source]
¶
test_random_alnum
(
)
[source]
¶
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_get_shortened_ipv6
(
)
[source]
¶
test_get_shortened_ipv6_cidr
(
)
[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_hostname_sanitize_characters
(
)
[source]
¶
test_hostname_sanitize_dashes
(
)
[source]
¶
test_hostname_sanitize_periods
(
)
[source]
¶
test_hostname_translate
(
)
[source]
¶
test_hostname_unicode_sanitization
(
)
[source]
¶
test_is_hostname_safe
(
)
[source]
¶
test_is_valid_boolstr
(
)
[source]
¶
test_is_valid_datapath_id
(
)
[source]
¶
test_is_valid_ipv6_cidr
(
)
[source]
¶
test_is_valid_logical_name
(
)
[source]
¶
test_is_valid_mac
(
)
[source]
¶
test_is_valid_no_proxy
(
)
[source]
¶
test_read_cached_file
(
)
[source]
¶
test_read_modified_cached_file
(
)
[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]
¶
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.
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]
¶
Project Source
Project Source
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
Navigation
index
modules
|
Ironic 6.2.5.dev3 documentation
»