keystoneauth1.tests.unit.loading package

keystoneauth1.tests.unit.loading package

Submodules

keystoneauth1.tests.unit.loading.test_adapter module

class keystoneauth1.tests.unit.loading.test_adapter.ConfLoadingLegacyTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.test_adapter.ConfLoadingTests

Tests with inclusion of deprecated conf options.

Not to be confused with ConfLoadingTests.test_deprecated, which tests external options that are deprecated in favor of Adapter options.

GROUP = 'adaptergroup'
setUp()

Hook method for setting up the test fixture before exercising it.

test_interface_conflict()
test_load_old_interface()
class keystoneauth1.tests.unit.loading.test_adapter.ConfLoadingTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.utils.TestCase

GROUP = 'adaptergroup'
setUp()

Hook method for setting up the test fixture before exercising it.

test_deprecated()

Test external options that are deprecated by Adapter options.

Not to be confused with ConfLoadingDeprecatedTests, which tests conf options in Adapter which are themselves deprecated.

test_get_conf_options()
test_get_conf_options_undeprecated()
test_load()
test_load_bad_valid_interfaces_value()
test_load_valid_interfaces_comma_list()
test_load_valid_interfaces_list()
test_load_version_range()
test_version_mutex_max()
test_version_mutex_min()
test_version_mutex_minmax()

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()

Hook method for setting up the test fixture before exercising it.

test_adapter_service_type()
test_adapter_service_type_per_service()
test_basic_params_added(**kwargs)
test_creating_with_no_args()
test_default_options(**kwargs)
test_deprecated_cli_options()
test_deprecated_env_multi_options()
test_deprecated_env_options()
test_deprecated_multi_cli_options()
test_env_overrides_default_opt(**kwargs)
test_load_with_nothing()
test_overrides_default_string_value(**kwargs)
test_overrides_default_type_value(**kwargs)
test_param_loading(**kwargs)
test_with_default_string_value(**kwargs)
test_with_default_type_value(**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()

Hook method for setting up the test fixture before exercising it.

test_common_conf_options()
test_diff_section(**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(**keywargs)
test_plugins_are_all_opts()
test_register_cfg()
test_same_section(**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_fixtures module

class keystoneauth1.tests.unit.loading.test_fixtures.FixturesTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.utils.TestCase

AUTH_TYPE = '97d168733e63487ba6783848d60f0695'
GROUP = 'c30ef611317644daa9cbae554ee5a7b9'
setUp()

Hook method for setting up the test fixture before exercising it.

test_conf_loaded()
test_endpoint_resolve()
useLoadingFixture(**kwargs)

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.PluginA(a)

Bases: object

class keystoneauth1.tests.unit.loading.test_loading.PluginB(b)

Bases: object

class keystoneauth1.tests.unit.loading.test_loading.TestSplitLoader

Bases: keystoneauth1.loading.base.BaseLoader

create_plugin(a=None, b=None, **kwargs)

Create a plugin from the options available for the loader.

Given the options that were specified by the loader create an appropriate plugin. You can override this function in your loader.

This used to be specified by providing the plugin_class property and this is still supported, however specifying a property didn’t let you choose a plugin type based upon the options that were presented.

Override this function if you wish to return different plugins based on the options presented, otherwise you can simply provide the plugin_class property.

Added 2.9

get_options()

Return the list of parameters associated with the auth plugin.

This list may be used to generate CLI or config arguments.

Returns:A list of Param objects describing available plugin parameters.
Return type:list

keystoneauth1.tests.unit.loading.test_session module

class keystoneauth1.tests.unit.loading.test_session.CliLoadingTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.utils.TestCase

get_session(val, **kwargs)
setUp()

Hook method for setting up the test fixture before exercising it.

test_cacert()
test_client_certs()
test_insecure_timeout()
class keystoneauth1.tests.unit.loading.test_session.ConfLoadingTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.utils.TestCase

GROUP = 'sessiongroup'
config(**kwargs)
get_session(**kwargs)
setUp()

Hook method for setting up the test fixture before exercising it.

test_cacert()
test_client_certs()
test_deprecated()
test_insecure_timeout()

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()

Hook method for setting up the test fixture before exercising it.

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()

Hook method for setting up the test fixture before exercising it.

test_basic()
test_without_project_domain()
test_without_user_domain()
class keystoneauth1.tests.unit.loading.test_v3.V3ApplicationCredentialTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.utils.TestCase

create(**kwargs)
setUp()

Hook method for setting up the test fixture before exercising it.

test_basic()
test_with_name()
test_without_name_or_id()
test_without_secret()
test_without_user_domain()
class keystoneauth1.tests.unit.loading.test_v3.V3PasswordTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.utils.TestCase

create(**kwargs)
setUp()

Hook method for setting up the test fixture before exercising it.

test_basic()
test_without_project_domain()
test_without_user_domain()
class keystoneauth1.tests.unit.loading.test_v3.V3TokenlessAuthTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.loading.utils.TestCase

create(**kwargs)
setUp()

Hook method for setting up the test fixture before exercising it.

test_basic()
test_missing_parameters()

keystoneauth1.tests.unit.loading.utils module

class keystoneauth1.tests.unit.loading.utils.BoolType

Bases: object

keystoneauth1.tests.unit.loading.utils.MockLoader

alias of keystoneauth1.tests.unit.loading.utils.Loader

class keystoneauth1.tests.unit.loading.utils.MockManager(driver)

Bases: object

keystoneauth1.tests.unit.loading.utils.MockPlugin

alias of keystoneauth1.tests.unit.loading.utils.Plugin

class keystoneauth1.tests.unit.loading.utils.TestCase(*args, **kwargs)

Bases: keystoneauth1.tests.unit.utils.TestCase

GROUP = 'auth'
TEST_VALS = {'a_bool': False, 'a_float': 88.8, 'a_int': 88}
V2PASS = 'v2password'
V3TOKEN = 'v3token'
a_bool = False
a_float = 88.8
a_int = 88
assertTestVals(plugin, vals={'a_bool': False, 'a_float': 88.8, 'a_int': 88})
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'>)

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.