keystone.tests.unit.token package¶
Submodules¶
keystone.tests.unit.token.test_backends module¶
keystone.tests.unit.token.test_common module¶
keystone.tests.unit.token.test_fernet_provider module¶
-
class
keystone.tests.unit.token.test_fernet_provider.
TestFernetKeyRotation
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.TestCase
-
assertUniqueRepositoryState
()[source]¶ Ensure that the current key repo state has not been seen before.
-
key_repository_signature
¶ Create a “thumbprint” of the current key repository.
Because key files are renamed, this produces a hash of the contents of the key files, ignoring their filenames.
The resulting signature can be used, for example, to ensure that you have a unique set of keys after you perform a key rotation (taking a static set of keys, and simply shuffling them, would fail such a test).
-
key_repository_size
¶ The number of keys in the key repository.
-
keys
¶ Key files converted to numbers.
-
-
class
keystone.tests.unit.token.test_fernet_provider.
TestFernetTokenProvider
(*args, **kwargs)[source]¶