keystone.tests.unit.token package

keystone.tests.unit.token package

Submodules

keystone.tests.unit.token.test_backends module

class keystone.tests.unit.token.test_backends.TokenCacheInvalidation[source]

Bases: object

test_delete_scoped_token_by_id()[source]
test_delete_scoped_token_by_user()[source]
test_delete_scoped_token_by_user_and_tenant()[source]
test_delete_unscoped_token()[source]
class keystone.tests.unit.token.test_backends.TokenTests[source]

Bases: object

check_list_revoked_tokens(token_infos)[source]
create_token_sample_data(token_id=None, tenant_id=None, trust_id=None, user_id=None, expires=None)[source]
delete_token()[source]
test_create_unicode_token_id()[source]
test_create_unicode_user_id()[source]
test_delete_token_returns_not_found()[source]
test_delete_tokens()[source]
test_delete_tokens_trust()[source]
test_flush_expired_token()[source]
test_get_token_returns_not_found()[source]
test_list_revoked_tokens_for_multiple_tokens()[source]
test_list_revoked_tokens_for_single_token()[source]
test_list_revoked_tokens_returns_empty_list()[source]
test_null_expires_token()[source]
test_predictable_revoked_uuid_token_id()[source]
test_revocation_list_cache(*args, **kwargs)[source]
test_token_crud()[source]
test_token_list()[source]
test_token_list_trust()[source]

keystone.tests.unit.token.test_common module

class keystone.tests.unit.token.test_common.TestTokenProvidersCommon(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

test_strings_are_url_safe()[source]

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

assertRepositoryState(expected_size)[source]

Validate the state of the key repository.

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.

setUp()[source]
test_non_numeric_files()[source]
test_rotation()[source]
test_rotation_disk_write_fail()[source]
class keystone.tests.unit.token.test_fernet_provider.TestFernetTokenProvider(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

setUp()[source]
test_invalid_v2_token_raises_token_not_found()[source]
test_invalid_v3_token_raises_token_not_found()[source]
test_needs_persistence_returns_false()[source]
test_supports_bind_authentication_returns_false()[source]
class keystone.tests.unit.token.test_fernet_provider.TestLoadKeys(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

assertValidFernetKey(keys)[source]
test_non_numeric_files()[source]
class keystone.tests.unit.token.test_fernet_provider.TestPayloads(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

assertTimestampsEqual(expected, actual)[source]
test_domain_scoped_payload()[source]
test_domain_scoped_payload_with_16_char_non_uuid_user_id()[source]
test_domain_scoped_payload_with_default_domain()[source]
test_domain_scoped_payload_with_non_uuid_user_id()[source]
test_federated_domain_scoped_payload()[source]
test_federated_payload_with_16_char_non_uuid_ids()[source]
test_federated_payload_with_non_uuid_ids()[source]
test_federated_project_scoped_payload()[source]
test_oauth_scoped_payload()[source]
test_project_scoped_payload()[source]
test_project_scoped_payload_with_16_char_non_uuid_ids()[source]
test_project_scoped_payload_with_non_uuid_ids()[source]
test_strings_can_be_converted_to_bytes()[source]
test_time_string_to_float_conversions()[source]
test_trust_scoped_payload()[source]
test_trust_scoped_payload_with_16_char_non_uuid_ids()[source]
test_trust_scoped_payload_with_non_uuid_ids()[source]
test_unscoped_payload()[source]
test_unscoped_payload_with_16_char_non_uuid_user_id()[source]
test_unscoped_payload_with_non_uuid_user_id()[source]
test_uuid_hex_to_byte_conversions()[source]
class keystone.tests.unit.token.test_fernet_provider.TestTokenFormatter(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

setUp()[source]
test_restore_padding()[source]
class keystone.tests.unit.token.test_fernet_provider.TestValidate(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

config_overrides()[source]
setUp()[source]
test_validate_v3_token_federated_info()[source]
test_validate_v3_token_simple()[source]
test_validate_v3_token_trust()[source]
test_validate_v3_token_validation_error_exc()[source]

keystone.tests.unit.token.test_token_data_helper module

class keystone.tests.unit.token.test_token_data_helper.TestTokenDataHelper(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

setUp()[source]
test_v3_token_data_helper_populate_audit_info_invalid()[source]
test_v3_token_data_helper_populate_audit_info_list()[source]
test_v3_token_data_helper_populate_audit_info_none()[source]
test_v3_token_data_helper_populate_audit_info_string()[source]

keystone.tests.unit.token.test_token_model module

class keystone.tests.unit.token.test_token_model.TestKeystoneTokenModel(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

setUp()[source]
test_token_model_dual_scoped_token()[source]
test_token_model_is_admin_project()[source]
test_token_model_unknown()[source]
test_token_model_v3()[source]
test_token_model_v3_federated_user()[source]

keystone.tests.unit.token.test_uuid_provider module

class keystone.tests.unit.token.test_uuid_provider.TestUuidTokenProvider(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.TestCase

setUp()[source]
test_need_persistence_return_true()[source]
test_supports_bind_authentication_returns_true()[source]

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.