keystone.tests.unit.identity package¶
Subpackages¶
Submodules¶
keystone.tests.unit.identity.test_backend_sql module¶
-
class
keystone.tests.unit.identity.test_backend_sql.
ChangePasswordRequiredAfterFirstUse
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.identity.test_backend_sql.
DisableInactiveUserTests
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.identity.test_backend_sql.
MinimumPasswordAgeTests
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.identity.test_backend_sql.
PasswordExpiresValidationTests
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.identity.test_backend_sql.
PasswordHistoryValidationTests
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.identity.test_backend_sql.
UserPasswordCreatedAtIntTests
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.identity.test_backend_sql.
UserPasswordHashingTestsNoCompat
(*args, **kwargs)[source]¶
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.
LimitTests
[source]¶ Bases:
keystone.tests.unit.filtering.FilterTests
-
ENTITIES
= ['user', 'group', 'project']¶
-
keystone.tests.unit.identity.test_core module¶
Unit tests for core identity behavior.