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]

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

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

Module contents