keystone.tests.unit.identity.backends package

keystone.tests.unit.identity.backends package

Submodules

keystone.tests.unit.identity.backends.test_base module

class keystone.tests.unit.identity.backends.test_base.IdentityDriverTests[source]

Bases: object

allows_name_update = True
allows_self_service_change_password = True
create_group(domain_id=None)[source]

Get a group for the test.

Similar to create_user(), subclasses can override this to provide their own way to provide a group for the test.

create_user(domain_id=None, **kwargs)[source]

Get a user for the test.

Subclasses can override this to provide their own way to provide a user for the test. By default, driver.create_user is used. For drivers that don’t support create_user, this may go directly to the backend, or maybe it gets a user from a set of pre-created users.

driver = None
expected_default_assignment_driver = ‘sql’
expected_generates_uuids = True
expected_is_domain_aware = True
expected_is_sql = False
test_add_user_to_group()[source]
test_add_user_to_group_no_group_exc()[source]
test_add_user_to_group_no_user_exc()[source]
test_authenticate()[source]
test_authenticate_no_user()[source]
test_authenticate_wrong_password()[source]
test_change_password()[source]
test_check_user_in_group()[source]
test_check_user_in_group_group_doesnt_exist_exc()[source]
test_check_user_in_group_user_doesnt_exist_exc()[source]
test_check_user_in_group_user_not_in_group_exc()[source]
test_create_group()[source]
test_create_group_all_attrs()[source]
test_create_group_duplicate_exc()[source]
test_create_user()[source]
test_create_user_all_attributes()[source]
test_create_user_same_id_exc()[source]
test_create_user_same_name_and_domain_exc()[source]
test_default_assignment_driver()[source]
test_delete_group()[source]
test_delete_group_doesnt_exist_exc()[source]
test_delete_user()[source]
test_delete_user_no_user_exc()[source]
test_generates_uuids()[source]
test_get_group()[source]
test_get_group_by_name()[source]
test_get_group_by_name_no_user_exc()[source]
test_get_group_no_group_exc()[source]
test_get_user()[source]
test_get_user_by_name()[source]
test_get_user_by_name_no_user_exc()[source]
test_get_user_no_user_exc()[source]
test_is_domain_aware()[source]
test_is_sql()[source]
test_list_groups_for_user_group()[source]
test_list_groups_for_user_no_groups()[source]
test_list_groups_for_user_no_user()[source]
test_list_groups_no_groups()[source]
test_list_groups_one_group()[source]
test_list_users_in_group_no_group()[source]
test_list_users_in_group_no_users()[source]
test_list_users_in_group_user()[source]
test_list_users_no_users()[source]
test_list_users_when_users()[source]
test_remove_user_from_group()[source]
test_remove_user_from_group_no_group()[source]
test_remove_user_from_group_no_user()[source]
test_remove_user_from_group_not_in_group()[source]
test_update_group()[source]
test_update_group_name_already_exists()[source]
test_update_group_name_not_allowed()[source]
test_update_group_no_group()[source]
test_update_user()[source]
test_update_user_name_not_allowed_exc()[source]
test_update_user_no_user_exc()[source]
test_update_user_remove_optional_attribute()[source]
test_update_user_same_name_exc()[source]

keystone.tests.unit.identity.backends.test_ldap module

class keystone.tests.unit.identity.backends.test_ldap.TestIdentityDriver(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.BaseTestCase, keystone.tests.unit.identity.backends.test_base.IdentityDriverTests

allows_name_update = False
allows_self_service_change_password = False
expected_default_assignment_driver = ‘sql’
expected_generates_uuids = False
expected_is_domain_aware = False
expected_is_sql = False
setUp()[source]
test_delete_group()[source]
test_delete_group_doesnt_exist_exc()[source]
test_delete_user()[source]
test_delete_user_no_user_exc()[source]
test_remove_user_from_group()[source]
test_remove_user_from_group_no_group()[source]
test_remove_user_from_group_no_user()[source]
test_remove_user_from_group_not_in_group()[source]

keystone.tests.unit.identity.backends.test_ldap_common module

class keystone.tests.unit.identity.backends.test_ldap_common.CommonLdapTestCase(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.BaseTestCase

These test cases call functions in keystone.common.ldap.

test_binary_attribute_values()[source]
test_user_id_and_bitmask_begins_with_0()[source]
test_user_id_and_user_name_with_boolean_string()[source]
test_user_id_begins_with_0()[source]
test_user_id_begins_with_0_and_enabled_bit_mask()[source]
test_utf8_conversion()[source]
class keystone.tests.unit.identity.backends.test_ldap_common.DnCompareTest(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.BaseTestCase

Test for the DN comparison functions in keystone.common.ldap.core.

test_ava_different()[source]
test_ava_equal_complex()[source]
test_ava_equal_same()[source]
test_dn_diff_length()[source]
test_dn_equal_rdns()[source]
test_dn_equal_unicode()[source]
test_dn_parsed_dns()[source]
test_dn_same()[source]
test_prep()[source]
test_prep_insignificant()[source]
test_prep_insignificant_pre_post()[source]
test_prep_lowercase()[source]
test_rdn_attr_type_alias()[source]
test_rdn_attr_type_case_diff()[source]
test_rdn_diff_length()[source]
test_rdn_multi_ava_diff_order()[source]
test_rdn_multi_ava_diff_type()[source]
test_rdn_multi_ava_same_order()[source]
test_rdn_same()[source]
test_startswith_descendant()[source]
test_startswith_not_parent()[source]
test_startswith_parent()[source]
test_startswith_parsed_dns()[source]
test_startswith_same()[source]
test_startswith_under_child()[source]
test_startswith_unicode()[source]
class keystone.tests.unit.identity.backends.test_ldap_common.LDAPConnectionTimeoutTest(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

Test for Network Connection timeout on LDAP URL connection.

test_connectivity_timeout_no_conn_pool(*args, **keywargs)[source]
test_connectivity_timeout_with_conn_pool(*args, **keywargs)[source]
class keystone.tests.unit.identity.backends.test_ldap_common.LDAPDeleteTreeTest(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

config_files()[source]
config_overrides()[source]
setUp()[source]
class keystone.tests.unit.identity.backends.test_ldap_common.LDAPFilterQueryCompositionTest(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.BaseTestCase

These test cases test LDAP filter generation.

setUp()[source]
test_filter_with_both_query_and_hints_set()[source]
test_filter_with_empty_query_and_hints_set()[source]
test_filter_with_hints_and_query_is_none()[source]
test_return_query_with_no_hints()[source]
class keystone.tests.unit.identity.backends.test_ldap_common.LDAPPagedResultsTest(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

Test the paged results functionality in keystone.common.ldap.core.

config_files()[source]
config_overrides()[source]
setUp()[source]
test_paged_results_control_api(*args, **keywargs)[source]
class keystone.tests.unit.identity.backends.test_ldap_common.MultiURLTests(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

Test for setting multiple LDAP URLs.

test_multiple_urls_with_comma_no_conn_pool(*args, **keywargs)[source]
test_multiple_urls_with_comma_with_conn_pool(*args, **keywargs)[source]
class keystone.tests.unit.identity.backends.test_ldap_common.SslTlsTest(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.BaseTestCase

Test for the SSL/TLS functionality in keystone.common.ldap.core.

setUp()[source]
test_certdir_trust_ldaps()[source]
test_certdir_trust_tls()[source]
test_certfile_trust_ldaps()[source]
test_certfile_trust_tls()[source]

keystone.tests.unit.identity.backends.test_sql module

class keystone.tests.unit.identity.backends.test_sql.MySQLOpportunisticIdentityDriverTestCase(*args, **kwargs)[source]

Bases: keystone.tests.unit.identity.backends.test_sql.TestIdentityDriver

FIXTURE

alias of MySQLOpportunisticFixture

class keystone.tests.unit.identity.backends.test_sql.PostgreSQLOpportunisticIdentityDriverTestCase(*args, **kwargs)[source]

Bases: keystone.tests.unit.identity.backends.test_sql.TestIdentityDriver

FIXTURE

alias of PostgreSQLOpportunisticFixture

class keystone.tests.unit.identity.backends.test_sql.TestIdentityDriver(*args, **kwargs)[source]

Bases: oslo_db.sqlalchemy.test_base.DbTestCase, keystone.tests.unit.identity.backends.test_base.IdentityDriverTests

expected_default_assignment_driver = ‘sql’
expected_generates_uuids = True
expected_is_domain_aware = True
expected_is_sql = True
setUp()[source]

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.