openstackclient.tests.common package¶
Submodules¶
openstackclient.tests.common.test_availability_zone module¶
-
class
openstackclient.tests.common.test_availability_zone.
TestAvailabilityZone
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
setUp
()¶
-
-
class
openstackclient.tests.common.test_availability_zone.
TestAvailabilityZoneList
(*args, **kwargs)¶ Bases:
openstackclient.tests.common.test_availability_zone.TestAvailabilityZone
-
compute_azs
= [<FakeResource hosts={'fd802513a8754bbe91cce1c9566651f8': {'841d32a47ac44e70b9b97e1839ea7c73': {'available': True, 'active': True, 'updated_at': '2847aa32c6ae40d5892487ba432359fa'}}}, zoneName=b753e26dee86469c8f121594796001a1, zoneState={'available': True}>, <FakeResource hosts={'73e7e9feceb2454fb9d43d8d0512d4c7': {'776ca4aef60a43cd9422f0cca8d22a7f': {'available': True, 'active': True, 'updated_at': 'c2bef37d4c64432eaf6b668e35a38f93'}}}, zoneName=400ce68edae24e6eb38e91200af0818f, zoneState={'available': True}>]¶
-
long_columnslist
= ('Zone Name', 'Zone Status', 'Zone Resource', 'Host Name', 'Service Name', 'Service Status')¶
-
network_azs
= [<FakeResource name=6adc2a379018495e936d103030da449a, resource=network, state=available>, <FakeResource name=d456a2d40f284a8bba45b01137a95748, resource=network, state=available>]¶
-
setUp
()¶
-
short_columnslist
= ('Zone Name', 'Zone Status')¶
-
test_availability_zone_list_compute
()¶
-
test_availability_zone_list_long
()¶
-
test_availability_zone_list_network
()¶
-
test_availability_zone_list_no_options
()¶
-
test_availability_zone_list_volume
()¶
-
volume_azs
= [<FakeResource zoneName=a9dc669a6df84740b56e64a95cceff87, zoneState={'available': True}>]¶
-
openstackclient.tests.common.test_clientmanager module¶
-
class
openstackclient.tests.common.test_clientmanager.
Container
¶ Bases:
object
-
attr
= <object object>¶
-
-
class
openstackclient.tests.common.test_clientmanager.
FakeOptions
(**kwargs)¶ Bases:
object
-
class
openstackclient.tests.common.test_clientmanager.
TestClientCache
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
test_attribute_error_propagates
()¶
-
test_singleton
()¶
-
-
class
openstackclient.tests.common.test_clientmanager.
TestClientManager
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
setUp
()¶
-
stub_auth
(json=None, url=None, verb=None, **kwargs)¶
-
test_client_manager_auth_setup_once
(*args, **keywargs)¶
-
test_client_manager_network_endpoint_disabled
()¶
-
test_client_manager_password
()¶
-
test_client_manager_password_client_cert
()¶
-
test_client_manager_password_client_cert_and_key
()¶
-
test_client_manager_password_no_cert
()¶
-
test_client_manager_password_verify_ca
()¶
-
test_client_manager_select_auth_plugin
()¶
-
test_client_manager_select_auth_plugin_failure
()¶
-
test_client_manager_token
()¶
-
test_client_manager_token_endpoint
()¶
-
openstackclient.tests.common.test_command module¶
-
class
openstackclient.tests.common.test_command.
FakeCommand
(app, app_args, cmd_name=None)¶ Bases:
openstackclient.common.command.Command
-
log
= <logging.Logger object>¶
-
take_action
(parsed_args)¶
-
-
class
openstackclient.tests.common.test_command.
TestCommand
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
test_command_has_logger
()¶
-
test_validate_os_beta_command_enabled
()¶
-
openstackclient.tests.common.test_commandmanager module¶
-
openstackclient.tests.common.test_commandmanager.
FAKE_CMD_ALPHA
¶ alias of
FakeCommand
-
openstackclient.tests.common.test_commandmanager.
FAKE_CMD_BETA
¶ alias of
FakeCommand
-
openstackclient.tests.common.test_commandmanager.
FAKE_CMD_ONE
¶ alias of
FakeCommand
-
openstackclient.tests.common.test_commandmanager.
FAKE_CMD_TWO
¶ alias of
FakeCommand
-
class
openstackclient.tests.common.test_commandmanager.
FakeCommand
¶ Bases:
object
-
classmethod
load
()¶
-
classmethod
-
class
openstackclient.tests.common.test_commandmanager.
FakeCommandManager
(namespace, convert_underscores=True)¶ Bases:
openstackclient.common.commandmanager.CommandManager
-
commands
= {}¶
-
load_commands
(namespace)¶
-
-
class
openstackclient.tests.common.test_commandmanager.
TestCommandManager
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
test_add_command_group
()¶
-
test_get_command_groups
()¶
-
test_get_command_names
()¶
-
openstackclient.tests.common.test_configuration module¶
-
class
openstackclient.tests.common.test_configuration.
TestConfiguration
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
columns
= ('auth.password', 'auth.token', 'auth.username', 'identity_api_version', 'region')¶
-
datalist
= ('<redacted>', '<redacted>', 'itchy', '3', 'richie')¶
-
test_show
()¶
-
test_show_mask
()¶
-
test_show_unmask
()¶
-
openstackclient.tests.common.test_extension module¶
-
class
openstackclient.tests.common.test_extension.
TestExtension
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
setUp
()¶
-
-
class
openstackclient.tests.common.test_extension.
TestExtensionList
(*args, **kwargs)¶ Bases:
openstackclient.tests.common.test_extension.TestExtension
-
columns
= ('Name', 'Alias', 'Description')¶
-
long_columns
= ('Name', 'Namespace', 'Description', 'Alias', 'Updated', 'Links')¶
-
setUp
()¶
-
test_extension_list_compute
()¶
-
test_extension_list_identity
()¶
-
test_extension_list_long
()¶
-
test_extension_list_network
()¶
-
test_extension_list_no_options
()¶
-
test_extension_list_volume
()¶
-
openstackclient.tests.common.test_logs module¶
-
class
openstackclient.tests.common.test_logs.
TestContext
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
test_log_level_from_config
()¶
-
test_log_level_from_options
()¶
-
test_set_warning_filter
(*args, **keywargs)¶
-
-
class
openstackclient.tests.common.test_logs.
TestFileFormatter
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
test_config
()¶
-
test_nothing
()¶
-
test_options
()¶
-
openstackclient.tests.common.test_module module¶
Test module module
-
class
openstackclient.tests.common.test_module.
TestCommandList
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
setUp
()¶
-
test_command_list_no_options
()¶
-
-
class
openstackclient.tests.common.test_module.
TestModuleList
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
setUp
()¶
-
test_module_list_all
(*args, **kw)¶
-
test_module_list_no_options
(*args, **kw)¶
-
openstackclient.tests.common.test_parseractions module¶
-
class
openstackclient.tests.common.test_parseractions.
TestKeyValueAction
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
setUp
()¶
-
test_error_values
()¶
-
test_good_values
()¶
-
-
class
openstackclient.tests.common.test_parseractions.
TestMultiKeyValueAction
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
setUp
()¶
-
test_empty_required_optional
()¶
-
test_error_values_with_comma
()¶
-
test_error_values_without_comma
()¶
-
test_good_values
()¶
-
test_invalid_key
()¶
-
test_missing_key
()¶
-
test_optional_keys_not_list
()¶
-
test_required_keys_not_list
()¶
-
openstackclient.tests.common.test_quota module¶
-
class
openstackclient.tests.common.test_quota.
FakeQuotaResource
(manager=None, info=None, loaded=False, methods=None)¶ Bases:
openstackclient.tests.fakes.FakeResource
-
get_keys
()¶
-
set_keys
(args)¶
-
unset_keys
(keys)¶
-
-
class
openstackclient.tests.common.test_quota.
TestQuota
(*args, **kwargs)¶ Bases:
openstackclient.tests.compute.v2.fakes.TestComputev2
-
setUp
()¶
-
openstackclient.tests.common.test_timing module¶
Test Timing pseudo-command
-
class
openstackclient.tests.common.test_timing.
FakeGenericClient
(**kwargs)¶ Bases:
object
openstackclient.tests.common.test_utils module¶
-
class
openstackclient.tests.common.test_utils.
FakeOddballResource
(manager=None, info=None, loaded=False, methods=None)¶ Bases:
openstackclient.tests.fakes.FakeResource
-
get
() is needed for utils.find_resource()¶
-
-
exception
openstackclient.tests.common.test_utils.
NoUniqueMatch
¶ Bases:
exceptions.Exception
-
class
openstackclient.tests.common.test_utils.
TestFindResource
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
setUp
()¶
-
test_find_resource_find
()¶
-
test_find_resource_find_no_unique
()¶
-
test_find_resource_find_not_found
()¶
-
test_find_resource_get_int
()¶
-
test_find_resource_get_int_string
()¶
-
test_find_resource_get_uuid
()¶
-
test_find_resource_get_whatever
()¶
-
test_find_resource_list_forbidden
()¶
-
test_find_resource_silly_resource
()¶
-
test_find_resource_silly_resource_not_found
()¶
-
test_format_dict
()¶
-
test_format_list
()¶
-
test_format_list_of_dicts
()¶
-
test_format_list_separator
()¶
-
-
class
openstackclient.tests.common.test_utils.
TestUtils
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCase
-
get_test_items
()¶
-
test_build_kwargs_dict_value_None
()¶
-
test_build_kwargs_dict_value_empty_str
()¶
-
test_build_kwargs_dict_value_set
()¶
-
test_get_password_bad_once
()¶
-
test_get_password_cntrl_d
()¶
-
test_get_password_good
()¶
-
test_get_password_no_tty
()¶
-
test_sort_items_all_with_direction
()¶
-
test_sort_items_some_with_direction
()¶
-
test_sort_items_with_empty_key
()¶
-
test_sort_items_with_invalid_direction
()¶
-
test_sort_items_with_invalid_key
()¶
-
test_sort_items_with_multiple_keys
()¶
-
test_sort_items_with_object
()¶
-
test_sort_items_with_one_key
()¶
-
test_wait_for_delete_error
(*args, **keywargs)¶
-
test_wait_for_delete_error_with_overrides
(*args, **keywargs)¶
-
test_wait_for_delete_error_with_overrides_exception
(*args, **keywargs)¶
-
test_wait_for_delete_ok
(*args, **keywargs)¶
-
test_wait_for_delete_timeout
(*args, **keywargs)¶
-
test_wait_for_status_error
(*args, **keywargs)¶
-
test_wait_for_status_error_with_overrides
(*args, **keywargs)¶
-
test_wait_for_status_ok
(*args, **keywargs)¶
-
test_wait_for_status_ok__with_overrides
(*args, **keywargs)¶
-