keystone.tests.unit.common package
Submodules
keystone.tests.unit.common.test_authorization module
-
class
keystone.tests.unit.common.test_authorization.
TestTokenToAuthContext
(*args, **kwargs)[source]
Bases: keystone.tests.unit.core.BaseTestCase
-
test_oauth_variables_not_set
()[source]
-
test_oauth_variables_set_for_oauth_token
()[source]
-
test_token_is_domain_scoped
()[source]
-
test_token_is_for_federated_user
()[source]
-
test_token_is_not_KeystoneToken_raises_exception
()[source]
-
test_token_is_project_scoped_with_trust
()[source]
-
test_token_is_unscoped
()[source]
-
test_user_id_missing_in_token_raises_exception
()[source]
keystone.tests.unit.common.test_cache module
-
class
keystone.tests.unit.common.test_cache.
TestCacheRegion
(*args, **kwargs)[source]
Bases: keystone.tests.unit.core.BaseTestCase
-
setUp
()[source]
-
test_combination
()[source]
-
test_direct_region_key_invalidation
()[source]
Invalidate by manually clearing the region key’s value.
NOTE(dstanek): I normally don’t like tests that repeat application
logic, but in this case we need to. There are too many ways that
the tests above can erroneosly pass that we need this sanity check.
-
test_memoize_decorator_when_invalidating_the_region
()[source]
-
test_multi_methods_when_invalidating_the_region
()[source]
-
test_region_multi_methods_delete
()[source]
-
test_region_singular_methods_delete
()[source]
-
test_singular_methods_when_invalidating_the_region
()[source]
keystone.tests.unit.common.test_database_conflicts module
keystone.tests.unit.common.test_notifications module
keystone.tests.unit.common.test_utils module
Module contents