keystone.tests.unit.identity package
Submodules
keystone.tests.unit.identity.test_backend_sql module
keystone.tests.unit.identity.test_backends module
-
class
keystone.tests.unit.identity.test_backends.
FilterTests
[source]
Bases: keystone.tests.unit.filtering.FilterTests
-
test_filter_value_wider_than_field
()[source]
-
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.
-
test_list_entities_filtered
()[source]
-
test_list_users_in_group_exact_filtered
()[source]
-
test_list_users_in_group_inexact_filtered
()[source]
-
test_list_users_inexact_filtered
()[source]
-
class
keystone.tests.unit.identity.test_backends.
IdentityTests
[source]
Bases: object
-
test_add_user_to_group
()[source]
-
test_add_user_to_group_returns_not_found
()[source]
-
test_arbitrary_attributes_are_returned_from_create_user
()[source]
-
test_arbitrary_attributes_are_returned_from_get_user
()[source]
-
test_authenticate
()[source]
-
test_authenticate_and_get_roles_no_metadata
()[source]
-
test_authenticate_bad_password
()[source]
-
test_authenticate_bad_user
()[source]
-
test_authenticate_if_no_password_set
()[source]
-
test_cache_layer_get_user
(*args, **kwargs)[source]
-
test_cache_layer_get_user_by_name
(*args, **kwargs)[source]
-
test_cache_layer_group_crud
(*args, **kwargs)[source]
-
test_check_user_in_group
()[source]
-
test_check_user_in_group_returns_not_found
()[source]
-
test_check_user_not_in_group
()[source]
-
test_create_duplicate_group_name_fails
()[source]
-
test_create_duplicate_group_name_in_different_domains
()[source]
-
test_create_duplicate_user_name_fails
()[source]
-
test_create_duplicate_user_name_in_different_domains
()[source]
-
test_create_group_name_with_trailing_whitespace
()[source]
-
test_create_unicode_user_name
()[source]
-
test_create_user_blank_name_fails
()[source]
-
test_create_user_doesnt_modify_passed_in_dict
()[source]
-
test_create_user_invalid_enabled_type_string
()[source]
-
test_create_user_invalid_name_fails
()[source]
-
test_create_user_long_name_fails
()[source]
-
test_create_user_missed_password
()[source]
-
test_create_user_none_password
()[source]
-
test_delete_group_with_user_project_domain_links
()[source]
-
test_delete_user_returns_not_found
()[source]
-
test_delete_user_with_group_project_domain_links
()[source]
-
test_get_group_by_name
()[source]
-
test_get_group_by_name_returns_not_found
()[source]
-
test_get_user
()[source]
-
test_get_user_by_name
()[source]
-
test_get_user_by_name_returns_not_found
()[source]
-
test_get_user_returns_not_found
()[source]
-
test_get_user_returns_required_attributes
()[source]
-
test_group_crud
()[source]
-
test_list_domains_filtered_and_limited
(*args, **kwargs)[source]
-
test_list_groups
()[source]
-
test_list_groups_for_user
()[source]
-
test_list_users
()[source]
-
test_list_users_in_group
()[source]
-
test_list_users_in_group_returns_not_found
()[source]
-
test_list_users_with_all_federated_attributes
()[source]
-
test_list_users_with_idp_id
()[source]
-
test_list_users_with_idp_id_protocol_id
()[source]
-
test_list_users_with_protocol_id
()[source]
-
test_list_users_with_unique_id
()[source]
-
test_list_users_with_unique_id_and_idp_id
()[source]
-
test_list_users_with_unique_id_and_protocol_id
()[source]
-
test_move_group_between_domains
()[source]
-
test_move_user_between_domains
()[source]
-
test_new_arbitrary_attributes_are_returned_from_update_user
()[source]
-
test_remove_user_from_group
()[source]
-
test_remove_user_from_group_returns_not_found
()[source]
-
test_rename_duplicate_user_name_fails
()[source]
-
test_update_group_name_with_trailing_whitespace
()[source]
-
test_update_user_enable
()[source]
-
test_update_user_id_fails
()[source]
-
test_update_user_long_name_fails
()[source]
-
test_update_user_name
()[source]
-
test_update_user_returns_not_found
()[source]
-
test_updated_arbitrary_attributes_are_returned_from_update_user
()[source]
-
test_user_crud
()[source]
-
test_user_update_and_user_get_return_same_response
()[source]
-
class
keystone.tests.unit.identity.test_backends.
LimitTests
[source]
Bases: keystone.tests.unit.filtering.FilterTests
-
ENTITIES
= ['user', 'group', 'project']
-
clean_up_entities
()[source]
Clean up entity test data from Limit Test Cases.
-
setUp
()[source]
Setup for Limit Test Cases.
-
test_list_groups_filtered_and_limited
()[source]
-
test_list_projects_filtered_and_limited
()[source]
-
test_list_users_filtered_and_limited
()[source]
keystone.tests.unit.identity.test_core module
Module contents