keystoneauth1.tests.unit.loading package¶
Submodules¶
keystoneauth1.tests.unit.loading.test_cli module¶
-
class
keystoneauth1.tests.unit.loading.test_cli.
CliTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
env
(name, value=None)¶
-
setUp
()¶
-
test_adapter_service_type
()¶
-
test_adapter_service_type_per_service
()¶
-
test_basic_params_added
(*args, **kwargs)¶
-
test_creating_with_no_args
()¶
-
test_default_options
(*args, **kwargs)¶
-
test_deprecated_cli_options
()¶
-
test_deprecated_env_multi_options
()¶
-
test_deprecated_env_options
()¶
-
test_deprecated_multi_cli_options
()¶
-
test_env_overrides_default_opt
(*args, **kwargs)¶
-
test_load_with_nothing
()¶
-
test_overrides_default_string_value
(*args, **kwargs)¶
-
test_overrides_default_type_value
(*args, **kwargs)¶
-
test_param_loading
(*args, **kwargs)¶
-
test_with_default_string_value
(*args, **kwargs)¶
-
test_with_default_type_value
(*args, **kwargs)¶
-
keystoneauth1.tests.unit.loading.test_conf module¶
-
class
keystoneauth1.tests.unit.loading.test_conf.
ConfTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
setUp
()¶
-
test_common_conf_options
()¶
-
test_diff_section
(*args, **kwargs)¶
-
test_get_common
()¶
-
test_get_named
()¶
-
test_loading_invalid_plugin
()¶
-
test_loading_v2
()¶
-
test_loading_v3
()¶
-
test_loading_with_no_data
()¶
-
test_other_params
(*args, **keywargs)¶
-
test_plugins_are_all_opts
()¶
-
test_register_cfg
()¶
-
test_same_section
(*args, **kwargs)¶
-
keystoneauth1.tests.unit.loading.test_entry_points module¶
-
class
keystoneauth1.tests.unit.loading.test_entry_points.
EntryPointTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
Simple test that will check that all entry points are loadable.
-
test_all_entry_points_are_valid
()¶
-
keystoneauth1.tests.unit.loading.test_generic module¶
-
class
keystoneauth1.tests.unit.loading.test_generic.
PasswordTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
test_loads_v3_with_user_domain
()¶
-
test_options
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_generic.
TokenTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
test_options
()¶
-
keystoneauth1.tests.unit.loading.test_loading module¶
-
class
keystoneauth1.tests.unit.loading.test_loading.
LoadingTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
test_create_plugin_loader
()¶
-
test_loaders
()¶
-
test_loading_getter
()¶
-
test_loading_getter_with_kwargs
()¶
-
test_required_values
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_loading.
TestSplitLoader
¶ Bases:
keystoneauth1.loading.base.BaseLoader
-
create_plugin
(a=None, b=None, **kwargs)¶
-
get_options
()¶
-
keystoneauth1.tests.unit.loading.test_session module¶
keystoneauth1.tests.unit.loading.test_v3 module¶
-
class
keystoneauth1.tests.unit.loading.test_v3.
OpenIDConnectAccessToken
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
create
(**kwargs)¶
-
plugin_name
= 'v3oidcaccesstoken'¶
-
setUp
()¶
-
test_basic
()¶
-
test_options
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_v3.
OpenIDConnectAuthCodeTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.test_v3.OpenIDConnectBaseTests
,keystoneauth1.tests.unit.loading.utils.TestCase
-
plugin_name
= 'v3oidcauthcode'¶
-
test_basic
()¶
-
test_options
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_v3.
OpenIDConnectBaseTests
¶ Bases:
object
-
create
(**kwargs)¶
-
plugin_name
= None¶
-
setUp
()¶
-
test_base_options_are_there
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_v3.
OpenIDConnectClientCredentialsTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.test_v3.OpenIDConnectBaseTests
,keystoneauth1.tests.unit.loading.utils.TestCase
-
plugin_name
= 'v3oidcclientcredentials'¶
-
test_basic
()¶
-
test_options
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_v3.
OpenIDConnectPasswordTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.test_v3.OpenIDConnectBaseTests
,keystoneauth1.tests.unit.loading.utils.TestCase
-
plugin_name
= 'v3oidcpassword'¶
-
test_basic
()¶
-
test_options
()¶
-
-
class
keystoneauth1.tests.unit.loading.test_v3.
TOTPTests
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.loading.utils.TestCase
-
create
(**kwargs)¶
-
setUp
()¶
-
test_basic
()¶
-
test_without_project_domain
()¶
-
test_without_user_domain
()¶
-
keystoneauth1.tests.unit.loading.utils module¶
-
keystoneauth1.tests.unit.loading.utils.
MockLoader
¶ alias of
Loader
-
keystoneauth1.tests.unit.loading.utils.
MockPlugin
¶ alias of
Plugin
-
class
keystoneauth1.tests.unit.loading.utils.
TestCase
(*args, **kwargs)¶ Bases:
keystoneauth1.tests.unit.utils.TestCase
-
GROUP
= 'auth'¶
-
TEST_VALS
= {'a_float': 88.8, 'a_int': 88, 'a_bool': False}¶
-
V2PASS
= 'v2password'¶
-
V3TOKEN
= 'v3token'¶
-
a_bool
= False¶
-
a_float
= 88.8¶
-
a_int
= 88¶
-
assertTestVals
(plugin, vals={'a_float': 88.8, 'a_int': 88, 'a_bool': False})¶
-
-
keystoneauth1.tests.unit.loading.utils.
create_plugin
(opts=[], token=None, endpoint=None)¶
-
keystoneauth1.tests.unit.loading.utils.
mock_plugin
(loader=<class 'keystoneauth1.tests.unit.loading.utils.Loader'>)¶