¡@

Home 

OpenStack Study: keystone

OpenStack Index

Previous

Next

    def delete_policy(self, policy_id):

class Driver(object):

    def _get_list_limit(self):

    def enforce(self, context, credentials, action, target):

    def create_policy(self, policy_id, policy):

    def list_policies(self):

    def get_policy(self, policy_id):

    def update_policy(self, policy_id, policy):

    def delete_policy(self, policy_id):

\OpenStack\keystone-2014.1\keystone\policy\routers.py

def append_v3_routers(mapper, routers):

\OpenStack\keystone-2014.1\keystone\policy\__init__.py

\OpenStack\keystone-2014.1\keystone\routers.py

class Extension(wsgi.ComposableRouter):

    def __init__(self, is_admin=True):

    def add_routes(self, mapper):

class VersionV2(wsgi.ComposableRouter):

    def __init__(self, description):

    def add_routes(self, mapper):

class VersionV3(wsgi.ComposableRouter):

    def __init__(self, description):

    def add_routes(self, mapper):

class Versions(wsgi.ComposableRouter):

    def __init__(self, description):

    def add_routes(self, mapper):

\OpenStack\keystone-2014.1\keystone\service.py

def load_backends():

def fail_gracefully(f):

def public_app_factory(global_conf, **local_conf):

def admin_app_factory(global_conf, **local_conf):

def public_version_app_factory(global_conf, **local_conf):

def admin_version_app_factory(global_conf, **local_conf):

def v3_app_factory(global_conf, **local_conf):

\OpenStack\keystone-2014.1\keystone\tests\core.py

def _calc_tmpdir():

class dirs:

    def root(*p):

    def etc(*p):

    def tests(*p):

    def tmp(*p):

    def tests_conf(*p):

        def test_method(*args):

    def wrapper(f):

        def inner(*args, **kwargs):

class UnexpectedExit(Exception):

class TestClient(object):

    def __init__(self, app=None, token=None):

    def request(self, method, path, headers=None, body=None):

    def get(self, path, headers=None):

    def post(self, path, headers=None, body=None):

    def put(self, path, headers=None, body=None):

class NoModule(object):

    def setUp(self):

        def cleanup_finders():

        def cleanup_modules():

    def clear_module(self, module):

    def disable_module(self, module):

class BaseTestCase(testtools.TestCase):

    def cleanup_instance(self, *names):

        def cleanup():

class TestCase(BaseTestCase):

    def config_files(self):

    def config_overrides(self):

    def setUp(self):

        def _cleanup_paths():

    def config(self, config_files):

    def load_backends(self):

    def load_fixtures(self, fixtures):

    def _paste_config(self, config):

    def loadapp(self, config, name='main'):

    def client(self, app, *args, **kw):

    def add_path(self, path):

    def clear_auth_plugin_registry(self):

    def assertCloseEnoughForGovernmentWork(self, a, b, delta=3):

    def assertNotEmpty(self, l):

    def assertDictEqual(self, d1, d2, msg=None):

    def assertRaisesRegexp(self, expected_exception, expected_regexp, callable_obj, *args, **kwargs):

    def assertDictContainsSubset(self, expected, actual, msg=None):

        def safe_repr(obj, short=False):

    def ipv6_enabled(self):

    def skip_if_no_ipv6(self):

    def skip_if_env_not_set(self, env_var):

    def assertSetEqual(self, set1, set2, msg=None):

    def _assertSetEqual(self, set1, set2, msg=None):

class SQLDriverOverrides(object):

    def config_overrides(self):

\OpenStack\keystone-2014.1\keystone\tests\default_fixtures.py

\OpenStack\keystone-2014.1\keystone\tests\fakeldap.py

\OpenStack\keystone-2014.1\keystone\tests\filtering.py

class FilterTests(object):

    def _match_with_list(self, this_batch, total_list, batch_size=None, list_start=None, list_end=None):

    def _create_entity(self, entity_type):

    def _delete_entity(self, entity_type):

    def _list_entities(self, entity_type):

    def _create_one_entity(self, entity_type, domain_id):

    def _create_test_data(self, entity_type, number, domain_id=None):

    def _delete_test_data(self, entity_type, entity_list):

\OpenStack\keystone-2014.1\keystone\tests\ksfixtures\appserver.py

class AppServer(fixtures.Fixture):

    def __init__(self, config, name, cert=None, key=None, ca=None, cert_required=False, host='127.0.0.1', port=0):

    def setUp(self):

    def _setup_SSL_if_requested(self):

    def _update_config_opt(self):

    def _get_config_option_for_section_name(self):

\OpenStack\keystone-2014.1\keystone\tests\ksfixtures\cache.py

class Cache(fixtures.Fixture):

    def setUp(self):

\OpenStack\keystone-2014.1\keystone\tests\ksfixtures\__init__.py

\OpenStack\keystone-2014.1\keystone\tests\mapping_fixtures.py

\OpenStack\keystone-2014.1\keystone\tests\matchers.py

class XMLEquals(object):

    def __init__(self, expected):

    def __str__(self):

    def match(self, other):

        def canonical_xml(s):

class XMLMismatch(matchers.Mismatch):

    def __init__(self, expected, other):

    def describe(self):

\OpenStack\keystone-2014.1\keystone\tests\rest.py

class RestfulTestCase(tests.TestCase):

    def setUp(self, app_conf='keystone'):

    def request(self, app, path, body=None, headers=None, token=None, expected_status=None, **kwargs):

    def assertResponseSuccessful(self, response):

    def assertResponseStatus(self, response, expected_status):

    def assertValidResponseHeaders(self, response):

    def assertValidErrorResponse(self, response, expected_status=400):

    def _to_content_type(self, body, headers, content_type=None):

    def _from_content_type(self, response, content_type=None):

    def restful_request(self, method='GET', headers=None, body=None, content_type=None, **kwargs):

    def _request(self, convert=True, **kwargs):

    def public_request(self, **kwargs):

    def admin_request(self, **kwargs):

    def _get_token(self, body):

    def get_unscoped_token(self):

    def get_scoped_token(self, tenant_id=None):

    def _get_token_id(self, r):

\OpenStack\keystone-2014.1\keystone\tests\test_associate_project_endpoint_extension.py

class TestExtensionCase(test_v3.RestfulTestCase):

    def setup_database(self):

    def config_overrides(self):

    def setUp(self):

class AssociateEndpointProjectFilterCRUDTestCase(TestExtensionCase):

    def test_create_endpoint_project_assoc(self):

    def test_create_endpoint_project_assoc_noproj(self):

    def test_create_endpoint_project_assoc_noendp(self):

    def test_create_endpoint_project_assoc_unexpected_body(self):

    def test_check_endpoint_project_assoc(self):

    def test_check_endpoint_project_assoc_noproj(self):

    def test_check_endpoint_project_assoc_noendp(self):

    def test_get_endpoint_project_assoc(self):

    def test_get_endpoint_project_assoc_noproj(self):

    def test_list_projects_for_endpoint_default(self):

    def test_list_projects_for_endpoint_noendpoint(self):

    def test_list_projects_for_endpoint_assoc(self):

    def test_remove_endpoint_project_assoc(self):

    def test_remove_endpoint_project_assoc_noproj(self):

    def test_remove_endpoint_project_assoc_noendp(self):

class AssociateProjectEndpointFilterTokenRequestTestCase(TestExtensionCase):

    def test_default_project_id_scoped_token_with_user_id_ep_filter(self):

    def test_implicit_project_id_scoped_token_with_user_id_ep_filter(self):

    def test_default_project_id_scoped_token_ep_filter_no_catalog(self):

    def test_implicit_project_id_scoped_token_ep_filter_no_catalog(self):

    def test_default_project_id_scoped_token_ep_filter_full_catalog(self):

    def test_implicit_project_id_scoped_token_ep_filter_full_catalog(self):

    def test_implicit_project_id_scoped_token_handling_bad_reference(self):

    def test_disabled_endpoint(self):

\OpenStack\keystone-2014.1\keystone\tests\test_auth.py

def _build_user_auth(token=None, user_id=None, username=None, password=None, tenant_id=None, tenant_name=None, trust_id=None):

class AuthTest(tests.TestCase):

    def setUp(self):

    def assertEqualTokens(self, a, b):

        def normalize(token):

class AuthBadRequests(AuthTest):

    def setUp(self):

    def test_no_external_auth(self):

    def test_no_token_in_auth(self):

    def test_no_credentials_in_auth(self):

    def test_authenticate_blank_request_body(self):

    def test_authenticate_blank_auth(self):

    def test_authenticate_invalid_auth_content(self):

    def test_authenticate_user_id_too_large(self):

    def test_authenticate_username_too_large(self):

    def test_authenticate_tenant_id_too_large(self):

    def test_authenticate_tenant_name_too_large(self):

    def test_authenticate_token_too_large(self):

    def test_authenticate_password_too_large(self):

class AuthWithToken(AuthTest):

    def setUp(self):

    def test_unscoped_token(self):

    def test_auth_invalid_token(self):

    def test_auth_bad_formatted_token(self):

    def test_auth_unscoped_token_no_project(self):

    def test_auth_unscoped_token_project(self):

    def test_auth_token_project_group_role(self):

    def test_auth_token_cross_domain_group_and_project(self):

    def test_belongs_to_no_tenant(self):

    def test_belongs_to(self):

    def test_token_auth_with_binding(self):

    def test_deleting_role_revokes_token(self):

class AuthWithPasswordCredentials(AuthTest):

    def setUp(self):

    def test_auth_invalid_user(self):

    def test_auth_valid_user_invalid_password(self):

    def test_auth_empty_password(self):

    def test_auth_no_password(self):

    def test_authenticate_blank_password_credentials(self):

    def test_authenticate_no_username(self):

    def test_bind_without_remote_user(self):

    def test_change_default_domain_id(self):

class AuthWithRemoteUser(AuthTest):

    def setUp(self):

    def test_unscoped_remote_authn(self):

    def test_unscoped_remote_authn_jsonless(self):

    def test_scoped_remote_authn(self):

    def test_scoped_nometa_remote_authn(self):

    def test_scoped_remote_authn_invalid_user(self):

    def test_bind_with_kerberos(self):

    def test_bind_without_config_opt(self):

class AuthWithTrust(AuthTest):

    def setUp(self):

    def config_overrides(self):

    def _create_auth_context(self, token_id):

    def create_trust(self, expires_at=None, impersonation=True):

    def build_v2_token_request(self, username, password):

    def test_create_trust_bad_data_fails(self):

    def test_create_trust_no_roles(self):

    def test_create_trust(self):

    def test_create_trust_expires_bad(self):

    def test_get_trust(self):

    def test_create_trust_no_impersonation(self):

    def test_create_trust_impersonation(self):

    def test_token_from_trust_wrong_user_fails(self):

    def fetch_v2_token_from_trust(self):

    def fetch_v3_token_from_trust(self):

    def test_create_v3_token_from_trust(self):

    def test_v3_trust_token_get_token_fails(self):

    def test_token_from_trust(self):

    def assert_token_count_for_trust(self, expected_value):

    def test_delete_tokens_for_user_invalidates_tokens_from_trust(self):

    def test_token_from_trust_cant_get_another_token(self):

    def test_delete_trust_revokes_token(self):

    def test_token_from_trust_with_no_role_fails(self):

    def test_expired_trust_get_token_fails(self):

    def test_token_from_trust_with_wrong_role_fails(self):

class TokenExpirationTest(AuthTest):

    def _maintain_token_expiration(self, mock_utcnow):

    def test_maintain_uuid_token_expiration(self):

class AuthCatalog(tests.SQLDriverOverrides, AuthTest):

    def config_files(self):

    def _create_endpoints(self):

        def create_endpoint(service_id, region, **kwargs):

        def create_service(**kwargs):

    def test_auth_catalog_disabled_endpoint(self):

    def test_validate_catalog_disabled_endpoint(self):

class NonDefaultAuthTest(tests.TestCase):

    def test_add_non_default_auth_method(self):

\OpenStack\keystone-2014.1\keystone\tests\test_auth_plugin.py

class SimpleChallengeResponse(auth.AuthMethodHandler):

    def authenticate(self, context, auth_payload, user_context):

class DuplicateAuthPlugin(SimpleChallengeResponse):

class MismatchedAuthPlugin(SimpleChallengeResponse):

class NoMethodAuthPlugin(auth.AuthMethodHandler):

    def authenticate(self, context, auth_payload, auth_context):

class TestAuthPlugin(tests.SQLDriverOverrides, tests.TestCase):

    def setUp(self):

    def config_files(self):

    def config_overrides(self):

    def test_unsupported_auth_method(self):

    def test_addition_auth_steps(self):

class TestAuthPluginDynamicOptions(TestAuthPlugin):

    def config_overrides(self):

    def config_files(self):

class TestInvalidAuthMethodRegistration(tests.TestCase):

    def test_duplicate_auth_method_registration(self):

    def test_no_method_attribute_auth_method_by_class_name_registration(self):

    def test_mismatched_auth_method_and_plugin_attribute(self):

        def clear_and_unregister_opt():

\OpenStack\keystone-2014.1\keystone\tests\test_backend.py

class IdentityTests(object):

    def _get_domain_fixture(self):

    def test_project_add_and_remove_user_role(self):

    def test_remove_user_role_not_assigned(self):

    def test_authenticate_bad_user(self):

    def test_authenticate_bad_password(self):

    def test_authenticate(self):

    def test_authenticate_and_get_roles_no_metadata(self):

    def test_authenticate_if_no_password_set(self):

    def test_password_hashed(self):

    def test_create_unicode_user_name(self):

    def test_get_project(self):

    def test_get_project_404(self):

    def test_get_project_by_name(self):

    def test_get_project_by_name_404(self):

    def test_list_user_ids_for_project(self):

    def test_get_project_user_ids_404(self):

    def test_get_user(self):

    def test_get_user_404(self):

    def test_get_user_by_name(self):

    def test_get_user_by_name_404(self):

    def test_get_role(self):

    def test_get_role_404(self):

    def test_create_duplicate_role_name_fails(self):

    def test_rename_duplicate_role_name_fails(self):

    def test_create_duplicate_user_id_fails(self):

    def test_create_duplicate_user_name_fails(self):

    def test_create_duplicate_user_name_in_different_domains(self):

    def test_move_user_between_domains(self):

    def test_move_user_between_domains_with_clashing_names_fails(self):

    def test_rename_duplicate_user_name_fails(self):

    def test_update_user_id_fails(self):

    def test_create_duplicate_project_id_fails(self):

    def test_create_duplicate_project_name_fails(self):

    def test_create_duplicate_project_name_in_different_domains(self):

    def test_move_project_between_domains(self):

    def test_move_project_between_domains_with_clashing_names_fails(self):

    def test_rename_duplicate_project_name_fails(self):

    def test_update_project_id_does_nothing(self):

    def test_list_role_assignments_unfiltered(self):

    def test_list_role_assignments_bad_role(self):

    def test_add_duplicate_role_grant(self):

    def test_get_role_by_user_and_project_with_user_in_group(self):

    def test_get_role_by_user_and_project(self):

    def test_get_roles_for_user_and_domain(self):

    def test_get_roles_for_user_and_domain_404(self):

    def test_get_roles_for_user_and_project_404(self):

    def test_add_role_to_user_and_project_404(self):

    def test_add_role_to_user_and_project_no_user(self):

    def test_remove_role_from_user_and_project(self):

    def test_get_role_grant_by_user_and_project(self):

    def test_remove_role_grant_from_user_and_project(self):

    def test_get_and_remove_role_grant_by_group_and_project(self):

    def test_get_and_remove_role_grant_by_group_and_domain(self):

    def test_get_and_remove_correct_role_grant_from_a_mix(self):

    def test_get_and_remove_role_grant_by_user_and_domain(self):

    def test_get_and_remove_role_grant_by_group_and_cross_domain(self):

    def test_get_and_remove_role_grant_by_user_and_cross_domain(self):

    def test_role_grant_by_group_and_cross_domain_project(self):

    def test_role_grant_by_user_and_cross_domain_project(self):

    def test_delete_user_grant_no_user(self):

    def test_delete_group_grant_no_group(self):

    def test_multi_role_grant_by_user_group_on_project_domain(self):

    def test_multi_group_grants_on_project_domain(self):

    def test_delete_role_with_user_and_group_grants(self):

    def test_delete_user_with_group_project_domain_links(self):

    def test_delete_group_with_user_project_domain_links(self):

    def test_delete_domain_with_user_group_project_links(self):

    def test_role_crud(self):

    def test_update_role_404(self):

    def test_add_user_to_project(self):

    def test_add_user_to_project_missing_default_role(self):

    def test_add_user_to_project_404(self):

    def test_add_user_to_project_no_user(self):

    def test_remove_user_from_project(self):

    def test_remove_user_from_project_race_delete_role(self):

    def test_remove_user_from_project_404(self):

    def test_list_user_project_ids_404(self):

    def test_update_project_404(self):

    def test_delete_project_404(self):

    def test_update_user_404(self):

    def test_delete_user_with_project_association(self):

    def test_delete_user_with_project_roles(self):

    def test_delete_user_404(self):

    def test_delete_role_404(self):

    def test_create_update_delete_unicode_project(self):

    def test_create_project_case_sensitivity(self):

    def test_create_project_with_no_enabled_field(self):

    def test_create_project_long_name_fails(self):

    def test_create_project_blank_name_fails(self):

    def test_create_project_invalid_name_fails(self):

    def test_update_project_blank_name_fails(self):

    def test_update_project_long_name_fails(self):

    def test_update_project_invalid_name_fails(self):

    def test_create_user_case_sensitivity(self):

    def test_create_user_long_name_fails(self):

    def test_create_user_blank_name_fails(self):

    def test_create_user_missed_password(self):

    def test_create_user_none_password(self):

    def test_create_user_invalid_name_fails(self):

    def test_update_project_invalid_enabled_type_string(self):

    def test_create_project_invalid_enabled_type_string(self):

    def test_create_user_invalid_enabled_type_string(self):

    def test_update_user_long_name_fails(self):

    def test_update_user_blank_name_fails(self):

    def test_update_user_invalid_name_fails(self):

    def test_list_users(self):

    def test_list_groups(self):

    def test_list_domains(self):

    def test_list_projects(self):

    def test_list_projects_for_domain(self):

    def test_list_projects_for_alternate_domain(self):

    def test_list_roles(self):

    def test_delete_project_with_role_assignments(self):

    def test_delete_role_check_role_grant(self):

    def test_create_project_doesnt_modify_passed_in_dict(self):

    def test_create_user_doesnt_modify_passed_in_dict(self):

    def test_update_user_enable(self):

    def test_update_user_name(self):

    def test_update_user_enable_fails(self):

    def test_update_project_enable(self):

    def test_add_user_to_group(self):

    def test_add_user_to_group_404(self):

    def test_check_user_in_group(self):

    def test_create_invalid_domain_fails(self):

    def test_check_user_not_in_group(self):

    def test_list_users_in_group(self):

    def test_list_groups_for_user(self):

    def test_remove_user_from_group(self):

    def test_remove_user_from_group_404(self):

    def test_group_crud(self):

    def test_create_duplicate_group_name_fails(self):

    def test_create_duplicate_group_name_in_different_domains(self):

    def test_move_group_between_domains(self):

    def test_move_group_between_domains_with_clashing_names_fails(self):

    def test_project_crud(self):

    def test_project_update_missing_attrs_with_a_value(self):

    def test_project_update_missing_attrs_with_a_falsey_value(self):

    def test_domain_crud(self):

    def test_create_domain_case_sensitivity(self):

    def test_attribute_update(self):

        def assert_key_equals(value):

        def assert_get_key_is(value):

    def test_user_crud(self):

    def test_list_projects_for_user(self):

    def test_list_projects_for_user_with_grants(self):

    def test_cache_layer_domain_crud(self):

    def test_cache_layer_project_crud(self):

    def test_cache_layer_role_crud(self):

    def create_user_dict(self, **attributes):

    def test_arbitrary_attributes_are_returned_from_create_user(self):

    def test_arbitrary_attributes_are_returned_from_get_user(self):

    def test_new_arbitrary_attributes_are_returned_from_update_user(self):

    def test_updated_arbitrary_attributes_are_returned_from_update_user(self):

    def test_create_grant_no_user(self):

    def test_create_grant_no_group(self):

    def test_get_default_domain_by_name(self):

    def test_get_not_default_domain_by_name(self):

class TokenTests(object):

    def _create_token_id(self):

    def test_token_crud(self):

    def create_token_sample_data(self, token_id=None, tenant_id=None, trust_id=None, user_id=None, expires=None):

    def test_delete_tokens(self):

    def test_delete_tokens_trust(self):

    def _test_token_list(self, token_list_fn):

    def test_token_list(self):

    def test_token_list_deprecated_public_interface(self):

    def test_token_list_trust(self):

    def test_get_token_404(self):

    def test_delete_token_404(self):

    def test_expired_token(self):

    def test_null_expires_token(self):

    def check_list_revoked_tokens(self, token_ids):

    def delete_token(self):

    def test_list_revoked_tokens_returns_empty_list(self):

    def test_list_revoked_tokens_for_single_token(self):

    def test_list_revoked_tokens_for_multiple_tokens(self):

    def test_flush_expired_token(self):

    def test_revocation_list_cache(self):

    def test_predictable_revoked_pki_token_id(self):

    def test_predictable_revoked_uuid_token_id(self):

    def test_create_unicode_token_id(self):

    def test_create_unicode_user_id(self):

    def test_list_tokens_unicode_user_id(self):

    def test_token_expire_timezone(self):

        def _create_token(expire_time):

class TokenCacheInvalidation(object):

    def _create_test_data(self):

    def _check_unscoped_tokens_are_invalid(self):

    def _check_scoped_tokens_are_invalid(self):

    def _check_scoped_tokens_are_valid(self):

    def _check_unscoped_tokens_are_valid(self):

    def test_delete_unscoped_token(self):

    def test_delete_scoped_token_by_id(self):

    def test_delete_scoped_token_by_user(self):

    def test_delete_scoped_token_by_user_and_tenant(self):

class TrustTests(object):

    def create_sample_trust(self, new_id, remaining_uses=None):

    def test_delete_trust(self):

    def test_delete_trust_not_found(self):

    def test_get_trust(self):

    def test_create_trust(self):

    def test_list_trust_by_trustee(self):

    def test_list_trust_by_trustor(self):

    def test_list_trusts(self):

    def test_trust_has_remaining_uses_positive(self):

    def test_trust_has_remaining_uses_negative(self):

    def test_consume_use(self):

class CommonHelperTests(tests.TestCase):

    def test_format_helper_raises_malformed_on_missing_key(self):

    def test_format_helper_raises_malformed_on_wrong_type(self):

    def test_format_helper_raises_malformed_on_incomplete_format(self):

class CatalogTests(object):

    def test_region_crud(self):

    def test_create_region_with_duplicate_id(self):

    def test_get_region_404(self):

    def test_delete_region_404(self):

    def test_create_region_invalid_parent_region_404(self):

    def test_service_crud(self):

    def test_delete_service_with_endpoint(self):

    def test_get_service_404(self):

    def test_delete_service_404(self):

    def test_create_endpoint_404(self):

    def test_get_endpoint_404(self):

    def test_delete_endpoint_404(self):

    def test_create_endpoint(self):

    def _create_endpoints(self):

        def create_endpoint(service_id, region, **kwargs):

    def test_get_catalog_endpoint_disabled(self):

    def test_get_v3_catalog_endpoint_disabled(self):

class PolicyTests(object):

    def _new_policy_ref(self):

    def assertEqualPolicies(self, a, b):

    def test_create(self):

    def test_get(self):

    def test_list(self):

    def test_update(self):

    def test_delete(self):

    def test_get_policy_404(self):

    def test_update_policy_404(self):

    def test_delete_policy_404(self):

class InheritanceTests(object):

    def test_inherited_role_grants_for_user(self):

    def test_inherited_role_grants_for_group(self):

    def test_list_projects_for_user_with_inherited_grants(self):

    def test_list_projects_for_user_with_inherited_group_grants(self):

class FilterTests(filtering.FilterTests):

    def test_list_users_filtered(self):

    def test_list_users_inexact_filtered(self):

    def test_filter_sql_injection_attack(self):

class LimitTests(filtering.FilterTests):

    def setUp(self):

    def clean_up_domain(self):

    def clean_up_entities(self):

    def _test_list_entity_filtered_and_limited(self, entity):

    def test_list_users_filtered_and_limited(self):

    def test_list_groups_filtered_and_limited(self):

    def test_list_projects_filtered_and_limited(self):

\OpenStack\keystone-2014.1\keystone\tests\test_backend_federation_sql.py

class SqlFederation(test_backend_sql.SqlModels):

    def test_identity_provider(self):

    def test_federated_protocol(self):

\OpenStack\keystone-2014.1\keystone\tests\test_backend_kvs.py

class KvsIdentity(tests.TestCase, test_backend.IdentityTests):

    def setUp(self):

    def config_overrides(self):

    def test_list_projects_for_user_with_grants(self):

    def test_create_duplicate_group_name_in_different_domains(self):

    def test_create_duplicate_user_name_in_different_domains(self):

    def test_create_duplicate_project_name_in_different_domains(self):

    def test_move_user_between_domains(self):

    def test_move_user_between_domains_with_clashing_names_fails(self):

    def test_move_group_between_domains(self):

    def test_move_group_between_domains_with_clashing_names_fails(self):

    def test_move_project_between_domains(self):

    def test_move_project_between_domains_with_clashing_names_fails(self):

class KvsToken(tests.TestCase, test_backend.TokenTests):

    def setUp(self):

    def config_overrides(self):

    def test_flush_expired_token(self):

    def _update_user_token_index_direct(self, user_key, token_id, new_data):

    def test_cleanup_user_index_on_create(self):

class KvsTrust(tests.TestCase, test_backend.TrustTests):

    def setUp(self):

    def config_overrides(self):

class KvsCatalog(tests.TestCase, test_backend.CatalogTests):

    def setUp(self):

    def config_overrides(self):

    def _load_fake_catalog(self):

    def test_get_catalog_404(self):

    def test_get_catalog(self):

    def test_get_catalog_endpoint_disabled(self):

    def test_get_v3_catalog_endpoint_disabled(self):

class KvsTokenCacheInvalidation(tests.TestCase, test_backend.TokenCacheInvalidation):

    def setUp(self):

    def config_overrides(self):

\OpenStack\keystone-2014.1\keystone\tests\test_backend_ldap.py

class BaseLDAPIdentity(test_backend.IdentityTests):

    def _get_domain_fixture(self):

    def clear_database(self):

    def reload_backends(self, domain_id):

    def get_config(self, domain_id):

    def config_overrides(self):

    def config_files(self):

    def test_build_tree(self):

    def test_configurable_allowed_user_actions(self):

    def test_configurable_forbidden_user_actions(self):

    def test_configurable_forbidden_create_existing_user(self):

    def test_user_filter(self):

    def test_remove_role_grant_from_user_and_project(self):

    def test_get_and_remove_role_grant_by_group_and_project(self):

    def test_delete_user_grant_no_user(self):

    def test_delete_group_grant_no_group(self):

    def test_get_and_remove_role_grant_by_group_and_domain(self):

    def test_get_and_remove_role_grant_by_user_and_domain(self):

    def test_get_and_remove_correct_role_grant_from_a_mix(self):

    def test_get_and_remove_role_grant_by_group_and_cross_domain(self):

    def test_get_and_remove_role_grant_by_user_and_cross_domain(self):

    def test_role_grant_by_group_and_cross_domain_project(self):

    def test_role_grant_by_user_and_cross_domain_project(self):

    def test_multi_role_grant_by_user_group_on_project_domain(self):

    def test_delete_role_with_user_and_group_grants(self):

    def test_delete_user_with_group_project_domain_links(self):

    def test_delete_group_with_user_project_domain_links(self):

    def test_list_projects_for_user(self):

    def test_list_projects_for_user_with_grants(self):

    def test_create_duplicate_user_name_in_different_domains(self):

    def test_create_duplicate_project_name_in_different_domains(self):

    def test_create_duplicate_group_name_in_different_domains(self):

    def test_move_user_between_domains(self):

    def test_move_user_between_domains_with_clashing_names_fails(self):

    def test_move_group_between_domains(self):

    def test_move_group_between_domains_with_clashing_names_fails(self):

    def test_move_project_between_domains(self):

    def test_move_project_between_domains_with_clashing_names_fails(self):

    def test_get_roles_for_user_and_domain(self):

    def test_list_role_assignments_unfiltered(self):

    def test_list_role_assignments_dumb_member(self):

    def test_list_role_assignments_bad_role(self):

    def test_multi_group_grants_on_project_domain(self):

    def test_list_group_members_missing_entry(self):

    def test_list_group_members_when_no_members(self):

    def test_list_domains(self):

    def test_list_domains_non_default_domain_id(self):

    def test_authenticate_requires_simple_bind(self):

    def test_group_crud(self):

    def test_create_user_none_mapping(self):

    def test_update_user_name(self):

    def test_arbitrary_attributes_are_returned_from_create_user(self):

    def test_arbitrary_attributes_are_returned_from_get_user(self):

    def test_new_arbitrary_attributes_are_returned_from_update_user(self):

    def test_updated_arbitrary_attributes_are_returned_from_update_user(self):

class LDAPIdentity(BaseLDAPIdentity, tests.TestCase):

    def setUp(self):

    def test_configurable_allowed_project_actions(self):

    def test_configurable_subtree_delete(self):

    def test_configurable_forbidden_project_actions(self):

    def test_configurable_allowed_role_actions(self):

    def test_configurable_forbidden_role_actions(self):

    def test_project_filter(self):

    def test_role_filter(self):

    def test_dumb_member(self):

    def test_project_attribute_mapping(self):

    def test_project_attribute_ignore(self):

    def test_role_attribute_mapping(self):

    def test_role_attribute_ignore(self):

    def test_user_enable_attribute_mask(self):

        def get_enabled_vals():

    def test_user_api_get_connection_no_user_password(self):

    def test_chase_referrals_off(self):

    def test_chase_referrals_on(self):

    def test_wrong_ldap_scope(self):

    def test_wrong_alias_dereferencing(self):

    def test_user_extra_attribute_mapping(self):

    def test_parse_extra_attribute_mapping(self):

    def test_domain_crud(self):

    def test_create_domain_case_sensitivity(self):

    def test_cache_layer_domain_crud(self):

    def test_project_crud(self):

    def test_cache_layer_project_crud(self):

    def test_multi_role_grant_by_user_group_on_project_domain(self):

    def test_list_projects_for_alternate_domain(self):

    def test_create_grant_no_user(self):

    def test_create_grant_no_group(self):

    def test_get_default_domain_by_name(self):

class LDAPIdentityEnabledEmulation(LDAPIdentity):

    def setUp(self):

    def config_files(self):

    def config_overrides(self):

    def test_project_crud(self):

    def test_user_crud(self):

    def test_user_enable_attribute_mask(self):

class LdapIdentitySqlAssignment(BaseLDAPIdentity, tests.SQLDriverOverrides, tests.TestCase):

    def config_files(self):

    def setUp(self):

    def config_overrides(self):

    def test_domain_crud(self):

    def test_list_domains(self):

    def test_list_domains_non_default_domain_id(self):

    def test_project_filter(self):

    def test_role_filter(self):

    def test_add_role_grant_to_user_and_project_404(self):

    def test_get_role_grants_for_user_and_project_404(self):

    def test_list_projects_for_user_with_grants(self):

class MultiLDAPandSQLIdentity(BaseLDAPIdentity, tests.SQLDriverOverrides, tests.TestCase):

    def setUp(self):

    def config_overrides(self):

    def _setup_domain_test_data(self):

        def create_domain(domain):

    def _set_domain_configs(self):

    def reload_backends(self, domain_id):

    def get_config(self, domain_id):

    def test_list_domains(self):

    def test_list_domains_non_default_domain_id(self):

    def test_domain_segregation(self):

        def create_user(domain_id):

    def test_scanning_of_config_dir(self):

    def test_add_role_grant_to_user_and_project_404(self):

    def test_get_role_grants_for_user_and_project_404(self):

    def test_list_projects_for_user_with_grants(self):

\OpenStack\keystone-2014.1\keystone\tests\test_backend_rules.py

class RulesPolicy(tests.TestCase, test_backend.PolicyTests):

    def setUp(self):

    def config_overrides(self):

    def test_create(self):

    def test_get(self):

    def test_list(self):

    def test_update(self):

    def test_delete(self):

    def test_get_policy_404(self):

    def test_update_policy_404(self):

    def test_delete_policy_404(self):

\OpenStack\keystone-2014.1\keystone\tests\test_backend_sql.py

class SqlTests(tests.SQLDriverOverrides, tests.TestCase):

    def setUp(self):

    def config_files(self):

class SqlModels(SqlTests):

    def setUp(self):

    def select_table(self, name):

    def assertExpectedSchema(self, table, cols):

    def test_user_model(self):

    def test_group_model(self):

    def test_domain_model(self):

    def test_project_model(self):

    def test_role_model(self):

    def test_role_assignment_model(self):

    def test_user_group_membership(self):

class SqlIdentity(SqlTests, test_backend.IdentityTests):

    def test_password_hashed(self):

    def test_delete_user_with_project_association(self):

    def test_create_null_user_name(self):

    def test_create_null_project_name(self):

    def test_create_null_role_name(self):

    def test_delete_project_with_user_association(self):

    def test_metadata_removed_on_delete_user(self):

    def test_metadata_removed_on_delete_project(self):

    def test_update_project_returns_extra(self):

    def test_update_user_returns_extra(self):

    def test_sql_user_to_dict_null_default_project_id(self):

class SqlTrust(SqlTests, test_backend.TrustTests):

class SqlToken(SqlTests, test_backend.TokenTests):

    def test_token_revocation_list_uses_right_columns(self):

    def test_flush_expired_tokens_batch(self):

    def test_token_flush_batch_size_default(self):

    def test_token_flush_batch_size_db2(self):

class SqlCatalog(SqlTests, test_backend.CatalogTests):

    def test_malformed_catalog_throws_error(self):

    def test_get_catalog_with_empty_public_url(self):

    def test_create_endpoint_400(self):

class SqlPolicy(SqlTests, test_backend.PolicyTests):

class SqlInheritance(SqlTests, test_backend.InheritanceTests):

class SqlTokenCacheInvalidation(SqlTests, test_backend.TokenCacheInvalidation):

    def setUp(self):

class SqlFilterTests(SqlTests, test_backend.FilterTests):

class SqlLimitTests(SqlTests, test_backend.LimitTests):

    def setUp(self):

class FakeTable(sql.ModelBase):

    def insert(self):

    def update(self):

    def lookup(self):

class SqlDecorators(tests.TestCase):

    def test_initialization_fail(self):

    def test_initialization(self):

    def test_non_ascii_init(self):

    def test_conflict_happend(self):

    def test_not_conflict_error(self):

\OpenStack\keystone-2014.1\keystone\tests\test_backend_templated.py

class TestTemplatedCatalog(tests.TestCase, test_backend.CatalogTests):

    def setUp(self):

    def config_overrides(self):

    def test_get_catalog(self):

    def test_malformed_catalog_throws_error(self):

    def test_get_catalog_endpoint_disabled(self):

    def test_get_v3_catalog_endpoint_disabled(self):

\OpenStack\keystone-2014.1\keystone\tests\test_base64utils.py

class TestValid(tests.TestCase):

    def test_valid_base64(self):

    def test_valid_base64url(self):

class TestBase64Padding(tests.TestCase):

    def test_filter(self):

    def test_alphabet_conversion(self):

    def test_is_padded(self):

    def test_strip_padding(self):

    def test_assure_padding(self):

    def test_base64_percent_encoding(self):

class TestTextWrap(tests.TestCase):

    def test_wrapping(self):

\OpenStack\keystone-2014.1\keystone\tests\test_cache.py

def _copy_value(value):

class CacheIsolatingProxy(proxy.ProxyBackend):

    def get(self, key):

    def set(self, key, value):

class TestProxy(proxy.ProxyBackend):

    def get(self, key):

class TestProxyValue(object):

    def __init__(self, value):

class CacheRegionTest(tests.TestCase):

    def setUp(self):

    def _add_test_caching_option(self):

    def _get_cacheable_function(self):

        def cacheable_function(value):

    def test_region_built_with_proxy_direct_cache_test(self):

    def test_cache_region_no_error_multiple_config(self):

    def test_should_cache_fn_global_cache_enabled(self):

    def test_should_cache_fn_global_cache_disabled(self):

    def test_should_cache_fn_global_cache_disabled_section_cache_enabled(self):

    def test_should_cache_fn_global_cache_enabled_section_cache_disabled(self):

    def test_should_cache_fn_global_cache_enabled_section_cache_enabled(self):

    def test_cache_dictionary_config_builder(self):

    def test_cache_debug_proxy(self):

    def test_configure_non_region_object_raises_error(self):

class CacheNoopBackendTest(tests.TestCase):

    def setUp(self):

    def config_overrides(self):

    def test_noop_backend(self):

\OpenStack\keystone-2014.1\keystone\tests\test_cache_backend_mongo.py

class MockCursor(object):

    def __init__(self, collection, dataset_factory):

    def __iter__(self):

    def __next__(self):

    def __getitem__(self, index):

class MockCollection(object):

    def __init__(self, db, name):

    def __getattr__(self, name):

    def ensure_index(self, key_or_list, *args, **kwargs):

    def index_information(self):

    def find_one(self, spec_or_id=None, *args, **kwargs):

    def find(self, spec=None, *args, **kwargs):

    def _get_dataset(self, spec):

    def _iter_documents(self, spec=None):

    def _apply_filter(self, document, query):

    def _copy_doc(self, obj, container):

    def insert(self, data, manipulate=True, **kwargs):

    def save(self, data, manipulate=True, **kwargs):

    def _insert(self, data):

    def find_and_modify(self, spec, document, upsert=False, **kwargs):

    def update(self, spec, document, upsert=False, **kwargs):

    def _internalize_dict(self, d):

    def remove(self, spec_or_id=None, search_filter=None):

class MockMongoDB(object):

    def __init__(self, dbname):

    def authenticate(self, username, password):

    def add_son_manipulator(self, manipulator):

    def __getattr__(self, name):

    def __getitem__(self, name):

class MockMongoClient(object):

    def __init__(self, *args, **kwargs):

    def __getattr__(self, dbname):

def get_collection(db_name, collection_name):

def pymongo_override():

class MyTransformer(mongo.BaseTransform):

    def transform_incoming(self, son, collection):

    def transform_outgoing(self, son, collection):

class MongoCache(testtools.TestCase):

    def setUp(self):

    def test_missing_db_hosts(self):

    def test_missing_db_name(self):

    def test_missing_cache_collection_name(self):

    def test_incorrect_write_concern(self):

    def test_correct_write_concern(self):

    def test_incorrect_read_preference(self):

    def test_correct_read_preference(self):

    def test_missing_replica_set_name(self):

    def test_provided_replica_set_name(self):

    def test_incorrect_mongo_ttl_seconds(self):

    def test_cache_configuration_values_assertion(self):

    def test_multiple_region_cache_configuration(self):

    def test_typical_configuration(self):

    def test_backend_get_missing_data(self):

    def test_backend_set_data(self):

    def test_backend_set_data_with_string_as_valid_ttl(self):

    def test_backend_set_data_with_int_as_valid_ttl(self):

    def test_backend_set_none_as_data(self):

    def test_backend_set_blank_as_data(self):

    def test_backend_set_same_key_multiple_times(self):

    def test_backend_multi_set_data(self):

    def test_backend_multi_get_data(self):

    def test_backend_multi_set_should_update_existing(self):

    def test_backend_multi_set_get_with_blanks_none(self):

    def test_backend_delete_data(self):

    def test_backend_multi_delete_data(self):

    def test_additional_crud_method_arguments_support(self):

\OpenStack\keystone-2014.1\keystone\tests\test_catalog.py

class V2CatalogTestCase(rest.RestfulTestCase):

    def setUp(self):

    def new_ref(self):

    def new_service_ref(self):

    def _get_token_id(self, r):

    def _endpoint_create(self, expected_status=200, service_id=SERVICE_FIXTURE, publicurl='http:

    def test_endpoint_create(self):

    def test_endpoint_create_with_null_adminurl(self):

    def test_endpoint_create_with_empty_adminurl(self):

    def test_endpoint_create_with_null_internalurl(self):

    def test_endpoint_create_with_empty_internalurl(self):

    def test_endpoint_create_with_null_publicurl(self):

    def test_endpoint_create_with_empty_publicurl(self):

    def test_endpoint_create_with_null_service_id(self):

    def test_endpoint_create_with_empty_service_id(self):

\OpenStack\keystone-2014.1\keystone\tests\test_cert_setup.py

class CertSetupTestCase(rest.RestfulTestCase):

    def setUp(self):

        def cleanup_ssldir():

    def config_overrides(self):

    def test_can_handle_missing_certs(self):

    def test_create_pki_certs(self):

    def test_create_ssl_certs(self):

    def test_fetch_signing_cert(self):

    def test_failure(self):

\OpenStack\keystone-2014.1\keystone\tests\test_config.py

class ConfigTestCase(tests.TestCase):

    def config_files(self):

    def test_paste_config(self):

    def test_config_default(self):

class DeprecatedTestCase(tests.TestCase):

    def config_files(self):

    def test_sql(self):

class DeprecatedOverrideTestCase(tests.TestCase):

    def config_files(self):

    def test_sql(self):

\OpenStack\keystone-2014.1\keystone\tests\test_content_types.py

class CoreApiTests(object):

    def assertValidError(self, error):

    def assertValidVersion(self, version):

    def assertValidExtension(self, extension):

    def assertValidExtensionLink(self, link):

    def assertValidTenant(self, tenant):

    def assertValidUser(self, user):

    def assertValidRole(self, tenant):

    def test_public_not_found(self):

    def test_admin_not_found(self):

    def test_public_multiple_choice(self):

    def test_admin_multiple_choice(self):

    def test_public_version(self):

    def test_admin_version(self):

    def test_public_extensions(self):

    def test_admin_extensions(self):

    def test_admin_extensions_404(self):

    def test_public_osksadm_extension_404(self):

    def test_admin_osksadm_extension(self):

    def test_authenticate(self):

    def test_authenticate_unscoped(self):

    def test_get_tenants_for_token(self):

    def test_validate_token(self):

    def test_invalid_token_404(self):

    def test_validate_token_service_role(self):

    def test_remove_role_revokes_token(self):

OpenStack Index

Previous

Next