keystone.tests.unit.identity package¶
Submodules¶
keystone.tests.unit.identity.test_backends module¶
-
class
keystone.tests.unit.identity.test_backends.FilterTests[source]¶ Bases:
keystone.tests.unit.filtering.FilterTests-
test_groups_for_user_exact_filtered()[source]¶ Test exact filters doesn’t break groups_for_user listing.
-
test_groups_for_user_inexact_filtered()[source]¶ Test use of filtering doesn’t break groups_for_user listing.
Some backends may use filtering to achieve the list of groups for a user, so test that it can combine a second filter.
Test Plan:
- Create 10 groups, some with names we can filter on
- Create 2 users
- Assign 1 of those users to most of the groups, including some of the well known named ones
- Assign the other user to other groups as spoilers
- Ensure that when we list groups for users with a filter on the group name, both restrictions have been enforced on what is returned.
-
-
class
keystone.tests.unit.identity.test_backends.IdentityTests[source]¶ Bases:
object-
test_add_user_to_group()¶
-
test_add_user_to_group_returns_not_found()¶
-
test_arbitrary_attributes_are_returned_from_create_user()¶
-
test_arbitrary_attributes_are_returned_from_get_user()¶
-
test_authenticate()¶
-
test_authenticate_and_get_roles_no_metadata()¶
-
test_authenticate_bad_password()¶
-
test_authenticate_bad_user()¶
-
test_authenticate_if_no_password_set()¶
-
test_cache_layer_get_user(*args, **kwargs)¶
-
test_cache_layer_get_user_by_name(*args, **kwargs)¶
-
test_cache_layer_group_crud(*args, **kwargs)¶
-
test_check_user_in_group()¶
-
test_check_user_in_group_returns_not_found()¶
-
test_check_user_not_in_group()¶
-
test_create_duplicate_group_name_fails()¶
-
test_create_duplicate_group_name_in_different_domains()¶
-
test_create_duplicate_user_name_fails()¶
-
test_create_duplicate_user_name_in_different_domains()¶
-
test_create_unicode_user_name()¶
-
test_create_user_blank_name_fails()¶
-
test_create_user_doesnt_modify_passed_in_dict()¶
-
test_create_user_invalid_enabled_type_string()¶
-
test_create_user_invalid_name_fails()¶
-
test_create_user_long_name_fails()¶
-
test_create_user_missed_password()¶
-
test_create_user_none_password()¶
-
test_delete_group_with_user_project_domain_links()¶
-
test_delete_user_returns_not_found()¶
-
test_delete_user_with_group_project_domain_links()¶
-
test_get_group_by_name()¶
-
test_get_group_by_name_returns_not_found()¶
-
test_get_user()¶
-
test_get_user_by_name()¶
-
test_get_user_by_name_returns_not_found()¶
-
test_get_user_returns_not_found()¶
-
test_group_crud()¶
-
test_list_groups()¶
-
test_list_groups_for_user()¶
-
test_list_users()¶
-
test_list_users_in_group()¶
-
test_list_users_in_group_returns_not_found()¶
-
test_move_group_between_domains()¶
-
test_move_group_between_domains_with_clashing_names_fails()¶
-
test_move_user_between_domains()¶
-
test_move_user_between_domains_with_clashing_names_fails()¶
-
test_new_arbitrary_attributes_are_returned_from_update_user()¶
-
test_remove_user_from_group()¶
-
test_remove_user_from_group_returns_not_found()¶
-
test_rename_duplicate_user_name_fails()¶
-
test_update_user_blank_name_fails()¶
-
test_update_user_enable()¶
-
test_update_user_enable_fails()¶
-
test_update_user_id_fails()¶
-
test_update_user_invalid_name_fails()¶
-
test_update_user_long_name_fails()¶
-
test_update_user_name()¶
-
test_update_user_returns_not_found()¶
-
test_updated_arbitrary_attributes_are_returned_from_update_user()¶
-
test_user_crud()¶
-
test_user_update_and_user_get_return_same_response()¶
-
-
class
keystone.tests.unit.identity.test_backends.LimitTests[source]¶ Bases:
keystone.tests.unit.filtering.FilterTests-
ENTITIES= ['user', 'group', 'project']¶
-
keystone.tests.unit.identity.test_controllers module¶
keystone.tests.unit.identity.test_core module¶
Unit tests for core identity behavior.
-
class
keystone.tests.unit.identity.test_core.TestDatabaseDomainConfigs(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.TestCase-
setUp()¶
-
test_domain_config_in_database_disabled_by_default()¶
-
test_loading_config_from_database()¶
-
-
class
keystone.tests.unit.identity.test_core.TestDomainConfigs(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.BaseTestCase-
setUp()¶
-
test_config_for_dot_name_domain()¶
-
test_config_for_multiple_sql_backend()¶
-
test_config_for_nonexistent_domain()¶ Having a config for a non-existent domain will be ignored.
There are no assertions in this test because there are no side effects. If there is a config file for a domain that does not exist it should be ignored.
-