¡@

Home 

OpenStack Study: keystone

OpenStack Index

Previous

Next

    def test_validate_token_belongs_to(self):

    def test_validate_token_no_belongs_to_still_returns_catalog(self):

    def test_validate_token_head(self):

    def test_endpoints(self):

    def test_get_tenant(self):

    def test_get_tenant_by_name(self):

    def test_get_user_roles(self):

    def test_get_user_roles_with_tenant(self):

    def test_get_user(self):

    def test_get_user_by_name(self):

    def test_create_update_user_invalid_enabled_type(self):

    def test_error_response(self):

    def test_invalid_parameter_error_response(self):

    def _get_user_id(self, r):

    def _get_role_id(self, r):

    def _get_role_name(self, r):

    def _get_project_id(self, r):

    def assertNoRoles(self, r):

    def test_update_user_tenant(self):

    def test_update_user_with_invalid_tenant(self):

    def test_update_user_with_invalid_tenant_no_prev_tenant(self):

    def test_update_user_with_old_tenant(self):

    def test_authenticating_a_user_with_no_password(self):

    def test_www_authenticate_header(self):

    def test_www_authenticate_header_host(self):

class LegacyV2UsernameTests(object):

    def create_user(self, **user_attrs):

    def test_create_with_extra_username(self):

    def test_get_returns_username_from_extra(self):

    def test_update_returns_new_username_when_adding_username(self):

    def test_update_returns_new_username_when_updating_username(self):

    def test_username_is_always_returned_create(self):

    def test_username_is_always_returned_get(self):

    def test_username_is_always_returned_get_by_name(self):

    def test_username_is_always_returned_update_no_username_provided(self):

    def test_updated_username_is_returned(self):

    def test_username_can_be_used_instead_of_name_create(self):

    def test_username_can_be_used_instead_of_name_update(self):

class RestfulTestCase(rest.RestfulTestCase):

    def setUp(self):

class JsonTestCase(RestfulTestCase, CoreApiTests, LegacyV2UsernameTests):

    def _get_user_id(self, r):

    def _get_role_name(self, r):

    def _get_role_id(self, r):

    def _get_project_id(self, r):

    def _get_token_id(self, r):

    def assertNoRoles(self, r):

    def assertValidErrorResponse(self, r):

    def assertValidExtension(self, extension, expected):

    def assertValidExtensionListResponse(self, r, expected):

    def assertValidExtensionResponse(self, r, expected):

    def assertValidUser(self, user):

    def assertValidAuthenticationResponse(self, r, require_service_catalog=False):

    def assertValidTenantListResponse(self, r):

    def assertValidUserResponse(self, r):

    def assertValidTenantResponse(self, r):

    def assertValidRoleListResponse(self, r):

    def assertValidVersion(self, version):

    def assertValidMultipleChoiceResponse(self, r):

    def assertValidVersionResponse(self, r):

    def assertValidEndpointListResponse(self, r):

    def get_user_from_response(self, r):

    def get_user_attribute_from_response(self, r, attribute_name):

    def test_service_crud_requires_auth(self):

    def test_user_role_list_requires_auth(self):

    def test_fetch_revocation_list_nonadmin_fails(self):

    def test_fetch_revocation_list_admin_200(self):

    def assertValidRevocationListResponse(self, response):

    def test_create_update_user_json_invalid_enabled_type(self):

    def test_authenticating_a_user_with_an_OSKSADM_password(self):

    def test_updating_a_user_with_an_OSKSADM_password(self):

class RevokeApiJsonTestCase(JsonTestCase):

    def config_overrides(self):

    def test_fetch_revocation_list_admin_200(self):

class XmlTestCase(RestfulTestCase, CoreApiTests, LegacyV2UsernameTests):

    def _get_user_id(self, r):

    def _get_role_name(self, r):

    def _get_role_id(self, r):

    def _get_project_id(self, r):

    def assertNoRoles(self, r):

    def _get_token_id(self, r):

    def _tag(self, tag_name, xmlns=None):

    def assertValidErrorResponse(self, r):

    def assertValidExtension(self, extension, expected):

    def assertValidExtensionListResponse(self, r, expected):

    def assertValidExtensionResponse(self, r, expected):

    def assertValidVersion(self, version):

    def assertValidMultipleChoiceResponse(self, r):

    def assertValidVersionResponse(self, r):

    def assertValidEndpointListResponse(self, r):

    def assertValidTenantResponse(self, r):

    def assertValidUserResponse(self, r):

    def assertValidRoleListResponse(self, r):

    def assertValidAuthenticationResponse(self, r, require_service_catalog=False):

    def assertValidTenantListResponse(self, r):

    def get_user_from_response(self, r):

    def get_user_attribute_from_response(self, r, attribute_name):

    def test_authenticate_with_invalid_xml_in_password(self):

    def test_add_tenant_xml(self):

    def test_add_tenant_json(self):

    def test_create_project_invalid_enabled_type_string(self):

    def test_update_project_invalid_enabled_type_string(self):

    def test_authenticating_a_user_with_an_OSKSADM_password(self):

    def test_remove_role_revokes_token(self):

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

class S3ContribCore(tests.TestCase):

    def setUp(self):

    def test_good_signature(self):

    def test_bad_signature(self):

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

class BaseTestCase(test_v3.RestfulTestCase):

class TestSimpleCert(BaseTestCase):

    def request_cert(self, path):

    def test_ca_cert(self):

    def test_signing_cert(self):

    def test_missing_file(self):

class UUIDSimpleCertTests(BaseTestCase):

    def config_overrides(self):

    def test_using_uuid_controller(self):

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

class StatsContribCore(tests.TestCase):

    def setUp(self):

    def test_admin_request(self):

    def test_public_request(self):

    def test_other_request(self):

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

class ListHintsTests(test.TestCase):

    def test_create_iterate_satisfy(self):

    def test_multiple_creates(self):

    def test_limits(self):

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

class ExceptionTestCase(tests.TestCase):

    def assertValidJsonRendering(self, e):

    def test_all_json_renderings(self):

    def test_validation_error(self):

    def test_not_found(self):

    def test_403_title(self):

    def test_unicode_message(self):

    def test_unicode_string(self):

    def test_invalid_unicode_string(self):

class UnexpectedExceptionTestCase(ExceptionTestCase):

    def setUp(self):

    def test_unexpected_error_no_debug(self):

    def test_unexpected_error_debug(self):

    def test_unexpected_error_subclass_no_debug(self):

    def test_unexpected_error_subclass_debug(self):

    def test_unexpected_error_custom_message_no_debug(self):

    def test_unexpected_error_custom_message_debug(self):

class SecurityErrorTestCase(ExceptionTestCase):

    def test_unauthorized_exposure(self):

    def test_unauthorized_exposure_in_debug(self):

    def test_forbidden_exposure(self):

    def test_forbidden_exposure_in_debug(self):

    def test_forbidden_action_exposure(self):

    def test_forbidden_action_exposure_in_debug(self):

    def test_unicode_argument_message(self):

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

class TestDependencyInjection(testtools.TestCase):

    def setUp(self):

    def test_dependency_injection(self):

    def test_dependency_provider_configuration(self):

    def test_dependency_consumer_configuration(self):

    def test_inherited_dependency(self):

    def test_unresolvable_dependency(self):

        def for_test():

    def test_circular_dependency(self):

    def test_reset(self):

    def test_optional_dependency_not_provided(self):

    def test_optional_dependency_provided(self):

    def test_optional_and_required(self):

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

class IPv6TestCase(tests.TestCase):

    def setUp(self):

    def test_ipv6_ok(self):

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

class CompatTestCase(tests.NoModule, tests.TestCase):

    def setUp(self):

    def _public_url(self):

    def _admin_url(self):

    def _client(self, admin=False, **kwargs):

    def get_client(self, user_ref=None, tenant_ref=None, admin=False):

class KeystoneClientTests(object):

    def test_authenticate_tenant_name_and_tenants(self):

    def test_authenticate_tenant_id_and_tenants(self):

    def test_authenticate_invalid_tenant_id(self):

    def test_authenticate_token_no_tenant(self):

    def test_authenticate_token_tenant_id(self):

    def test_authenticate_token_invalid_tenant_id(self):

    def test_authenticate_token_invalid_tenant_name(self):

    def test_authenticate_token_tenant_name(self):

    def test_authenticate_and_delete_token(self):

    def test_authenticate_no_password(self):

    def test_authenticate_no_username(self):

    def test_authenticate_disabled_tenant(self):

    def test_tenant_create_update_and_delete(self):

    def test_tenant_create_update_and_delete_unicode(self):

    def test_tenant_create_no_name(self):

    def test_tenant_delete_404(self):

    def test_tenant_get_404(self):

    def test_tenant_update_404(self):

    def test_tenant_list(self):

    def test_invalid_password(self):

    def test_invalid_user_and_password(self):

    def test_change_password_invalidates_token(self):

    def test_disable_tenant_invalidates_token(self):

    def test_delete_tenant_invalidates_token(self):

    def test_disable_user_invalidates_token(self):

    def test_delete_user_invalidates_token(self):

    def test_token_expiry_maintained(self, mock_utcnow):

    def test_user_create_update_delete(self):

    def test_update_default_tenant_to_existing_value(self):

    def test_user_create_no_string_password(self):

    def test_user_create_no_name(self):

    def test_user_create_404(self):

    def test_user_get_404(self):

    def test_user_list_404(self):

    def test_user_update_404(self):

    def test_user_update_tenant(self):

    def test_user_update_password_404(self):

    def test_user_delete_404(self):

    def test_user_list(self):

    def test_user_get(self):

    def test_role_get(self):

    def test_role_crud(self):

    def test_role_create_no_name(self):

    def test_role_get_404(self):

    def test_role_delete_404(self):

    def test_role_list_404(self):

    def test_role_list(self):

    def test_service_crud(self):

    def test_service_delete_404(self):

    def test_service_get_404(self):

    def test_endpoint_delete_404(self):

    def test_admin_requires_adminness(self):

    def test_tenant_add_and_remove_user(self):

    def test_user_role_add_404(self):

    def test_user_role_add_no_user(self):

    def test_user_role_remove_404(self):

    def test_tenant_list_marker(self):

    def test_tenant_list_marker_not_found(self):

    def test_tenant_list_limit(self):

    def test_tenant_list_limit_bad_value(self):

    def test_roles_get_by_user(self):

    def test_user_can_update_passwd(self):

    def test_user_cannot_update_other_users_passwd(self):

    def test_tokens_after_user_update_passwd(self):

class KcMasterTestCase(CompatTestCase, KeystoneClientTests):

class KcOptTestCase(KcMasterTestCase):

    def setUp(self):

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

class KcMasterSqlTestCase(test_keystoneclient.KcMasterTestCase):

    def config_files(self):

    def setUp(self):

    def test_endpoint_crud(self):

    def _send_ec2_auth_request(self, credentials, client=None):

    def _generate_default_user_ec2_credentials(self):

    def _generate_user_ec2_credentials(self, access, secret):

    def test_ec2_auth_success(self):

    def test_ec2_auth_success_trust(self):

    def test_ec2_auth_failure(self):

    def test_ec2_credential_crud(self):

    def test_ec2_credential_crud_non_admin(self):

    def test_ec2_list_credentials(self):

    def test_ec2_credentials_create_404(self):

    def test_ec2_credentials_delete_404(self):

    def test_ec2_credentials_get_404(self):

    def test_ec2_credentials_list_404(self):

    def test_ec2_credentials_list_user_forbidden(self):

    def test_ec2_credentials_get_user_forbidden(self):

    def test_ec2_credentials_delete_user_forbidden(self):

    def test_endpoint_create_404(self):

    def test_endpoint_delete_404(self):

    def test_policy_crud(self):

class KcOptTestCase(KcMasterSqlTestCase):

    def setUp(self):

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

class MutexFixture(object):

    def __init__(self, storage_dict, key, timeout):

    def acquire(self, wait=True):

    def release(self):

class KVSBackendFixture(inmemdb.MemoryBackend):

    def __init__(self, arguments):

    def get_mutex(self, key):

    def key_mangler(cls, key):

class KVSBackendForcedKeyMangleFixture(KVSBackendFixture):

    def key_mangler(cls, key):

class RegionProxyFixture(proxy.ProxyBackend):

class RegionProxy2Fixture(proxy.ProxyBackend):

class TestMemcacheDriver(api.CacheBackend):

    def __init__(self, arguments):

    def set(self, key, value):

    def set_multi(self, mapping):

class KVSTest(tests.TestCase):

    def setUp(self):

    def _get_kvs_region(self, name=None):

    def test_kvs_basic_configuration(self):

    def test_kvs_proxy_configuration(self):

    def test_kvs_key_mangler_fallthrough_default(self):

    def test_kvs_key_mangler_configuration_backend(self):

    def test_kvs_key_mangler_configuration_forced_backend(self):

    def test_kvs_key_mangler_configuration_disabled(self):

    def test_kvs_key_mangler_set_on_backend(self):

        def test_key_mangler(key):

    def test_kvs_basic_get_set_delete(self):

    def _kvs_multi_get_set_delete(self, kvs):

    def test_kvs_multi_get_set_delete(self):

    def test_kvs_locking_context_handler(self):

    def test_kvs_locking_context_handler_locking_disabled(self):

    def test_kvs_with_lock_action_context_manager_timeout(self):

        def do_with_lock_action_timeout(kvs_region, key, offset):

    def test_kvs_with_lock_action_mismatched_keys(self):

        def do_with_lock_action(kvs_region, lock_key, target_key):

    def test_kvs_with_lock_action_context_manager(self):

    def test_kvs_with_lock_action_context_manager_no_lock(self):

    def test_kvs_backend_registration_does_not_reregister_backends(self):

    def test_kvs_memcached_manager_valid_dogpile_memcached_backend(self):

    def test_kvs_memcached_manager_invalid_dogpile_memcached_backend(self):

    def test_kvs_memcache_manager_no_expiry_keys(self):

        def new_mangler(key):

    def test_kvs_memcache_key_mangler_set_to_none(self):

    def test_noncallable_key_mangler_set_on_driver_raises_type_error(self):

    def test_kvs_memcache_set_arguments_and_memcache_expires_ttl(self):

    def test_memcached_lock_max_lock_attempts(self):

        def lock_within_a_lock(key):

class TestMemcachedBackend(tests.TestCase):

    def test_invalid_backend_fails_initialization(self):

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

def create_object(dn, attrs):

class LiveLDAPIdentity(test_backend_ldap.LDAPIdentity):

    def setUp(self):

    def _ldap_skip_live(self):

    def clear_database(self):

    def config_files(self):

    def config_overrides(self):

    def test_build_tree(self):

    def tearDown(self):

    def test_ldap_dereferencing(self):

    def test_base_ldap_connection_deref_option(self):

    def test_list_groups_for_user_filtered(self):

    def test_user_enable_attribute_mask(self):

    def test_create_unicode_user_name(self):

    def test_create_update_delete_unicode_project(self):

    def test_create_project_case_sensitivity(self):

        def call_super():

    def test_create_user_case_sensitivity(self):

        def call_super():

    def test_project_update_missing_attrs_with_a_falsey_value(self):

        def call_super():

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

def create_object(dn, attrs):

class LiveTLSLDAPIdentity(test_ldap_livetest.LiveLDAPIdentity):

    def _ldap_skip_live(self):

    def config_files(self):

    def config_overrides(self):

    def test_tls_certfile_demand_option(self):

    def test_tls_certdir_demand_option(self):

    def test_tls_bad_certfile(self):

    def test_tls_bad_certdir(self):

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

class TestXMLEquals(testtools.TestCase, helpers.TestMatchersInterface):

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

def make_request(**kwargs):

def make_response(**kwargs):

class TokenAuthMiddlewareTest(tests.TestCase):

    def test_request(self):

class AdminTokenAuthMiddlewareTest(tests.TestCase):

    def test_request_admin(self):

    def test_request_non_admin(self):

class PostParamsMiddlewareTest(tests.TestCase):

    def test_request_with_params(self):

class JsonBodyMiddlewareTest(tests.TestCase):

    def test_request_with_params(self):

    def test_malformed_json(self):

    def test_no_content_type(self):

    def test_unrecognized_content_type(self):

    def test_unrecognized_content_type_without_body(self):

class XmlBodyMiddlewareTest(tests.TestCase):

    def test_client_wants_xml_back(self):

    def test_client_wants_json_back(self):

    def test_client_fails_to_specify_accept(self):

    def test_xml_replaced_by_json(self):

    def test_json_unnaffected(self):

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

class ArbitraryException(Exception):

class NotificationsWrapperTestCase(tests.TestCase):

    def setUp(self):

        def fake_notify(operation, resource_type, resource_id, public=True):

    def create_resource(self, resource_id, data):

    def test_resource_created_notification(self):

    def update_resource(self, resource_id, data):

    def test_resource_updated_notification(self):

    def delete_resource(self, resource_id):

    def test_resource_deleted_notification(self):

    def create_exception(self, resource_id):

    def test_create_exception_without_notification(self):

    def update_exception(self, resource_id):

    def test_update_exception_without_notification(self):

    def delete_exception(self, resource_id):

    def test_delete_exception_without_notification(self):

class NotificationsTestCase(tests.TestCase):

    def setUp(self):

    def test_send_notification(self):

class NotificationsForEntities(test_v3.RestfulTestCase):

    def setUp(self):

        def fake_notify(operation, resource_type, resource_id, public=True):

    def _assertNotifySeen(self, resource_id, operation, resource_type):

    def _assertLastNotify(self, resource_id, operation, resource_type):

    def _assertNotifyNotSent(self, resource_id, operation, resource_type, public=True):

    def _assertNotifySent(self, resource_id, operation, resource_type, public):

    def test_create_group(self):

    def test_create_project(self):

    def test_create_role(self):

    def test_create_user(self):

    def test_create_trust(self):

    def test_delete_group(self):

    def test_delete_project(self):

    def test_delete_role(self):

    def test_delete_user(self):

    def test_update_domain(self):

    def test_delete_trust(self):

    def test_delete_domain(self):

    def test_disable_domain(self):

    def test_update_group(self):

    def test_update_project(self):

    def test_disable_project(self):

    def test_update_project_does_not_send_disable(self):

    def test_update_role(self):

    def test_update_user(self):

class TestEventCallbacks(test_v3.RestfulTestCase):

    def setUp(self):

    def _project_deleted_callback(self, service, resource_type, operation, payload):

    def _project_created_callback(self, service, resource_type, operation, payload):

    def test_notification_received(self):

    def test_notification_method_not_callable(self):

    def test_notification_event_not_valid(self):

    def test_event_registration_for_unknown_resource_type(self):

    def test_provider_event_callbacks_subscription(self):

    def test_invalid_event_callbacks(self):

    def test_invalid_event_callbacks_event(self):

class CadfNotificationsWrapperTestCase(test_v3.RestfulTestCase):

    def setUp(self):

        def fake_notify(action, initiator, outcome):

    def _assertLastNotify(self, action, user_id):

    def test_v3_authenticate_user_name_and_domain_id(self):

    def test_v3_authenticate_user_id(self):

    def test_v3_authenticate_user_name_and_domain_name(self):

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

class TestNoAdminTokenAuth(tests.TestCase):

    def setUp(self):

    def _generate_paste_config(self):

    def test_request_no_admin_token_auth(self):

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

def make_data(size, offset=0):

def make_base64_from_data(data):

def wrap_base64(base64_text):

def make_pem(header, data):

class PEM(object):

    def __init__(self, pem_header='CERTIFICATE', pem_type='cert', data_size=70, data_offset=0):

class TestPEMParseResult(tests.TestCase):

    def test_pem_types(self):

    def test_pem_headers(self):

class TestPEMParse(tests.TestCase):

    def test_parse_none(self):

    def test_parse_invalid(self):

    def test_parse_one(self):

    def test_parse_one_embedded(self):

    def test_parse_multple(self):

    def test_parse_multple_find_specific(self):

    def test_parse_multple_embedded(self):

    def test_get_pem_data_none(self):

    def test_get_pem_data_invalid(self):

    def test_get_pem_data(self):

    def test_is_pem(self):

    def test_base64_to_pem(self):

    def test_binary_to_pem(self):

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

class PolicyFileTestCase(tests.TestCase):

    def setUp(self):

    def config_overrides(self):

    def test_modified_policy_reloads(self):

class PolicyTestCase(tests.TestCase):

    def setUp(self):

    def _set_rules(self):

    def test_enforce_nonexistent_action_throws(self):

    def test_enforce_bad_action_throws(self):

    def test_enforce_good_action(self):

    def test_enforce_http_true(self):

        def fakeurlopen(url, post_data):

    def test_enforce_http_false(self):

        def fakeurlopen(url, post_data):

    def test_templatized_enforcement(self):

    def test_early_AND_enforcement(self):

    def test_early_OR_enforcement(self):

    def test_ignore_case_role_check(self):

class DefaultPolicyTestCase(tests.TestCase):

    def setUp(self):

    def _set_rules(self, default_rule):

    def test_policy_called(self):

    def test_not_found_policy_calls_default(self):

    def test_default_not_found(self):

class PolicyJsonTestCase(tests.TestCase):

    def _load_entries(self, filename):

    def test_json_examples_have_matching_entries(self):

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

def _new_id():

def _future_time():

def _past_time():

def _sample_blank_token():

def _matches(event, token_values):

class RevokeTests(object):

    def test_list(self):

    def test_list_since(self):

    def test_past_expiry_are_removed(self):

    def test_expired_events_removed_validate_token_success(self, mock_utcnow):

        def _sample_token_values():

class SqlRevokeTests(test_backend_sql.SqlTests, RevokeTests):

    def config_overrides(self):

class KvsRevokeTests(tests.TestCase, RevokeTests):

    def config_overrides(self):

    def setUp(self):

class RevokeTreeTests(tests.TestCase):

    def setUp(self):

    def _sample_data(self):

    def _assertTokenRevoked(self, token_data):

    def _assertTokenNotRevoked(self, token_data):

    def _revoke_by_user(self, user_id):

    def _revoke_by_expiration(self, user_id, expires_at):

    def _revoke_by_grant(self, role_id, user_id=None, domain_id=None, project_id=None):

    def _revoke_by_user_and_project(self, user_id, project_id):

    def _revoke_by_project_role_assignment(self, project_id, role_id):

    def _revoke_by_domain_role_assignment(self, domain_id, role_id):

    def _user_field_test(self, field_name):

    def test_revoke_by_user(self):

    def test_revoke_by_user_matches_trustee(self):

    def test_revoke_by_user_matches_trustor(self):

    def test_by_user_expiration(self):

    def removeEvent(self, event):

    def test_by_project_grant(self):

    def test_by_project_and_user_and_role(self):

    def _assertEmpty(self, collection):

    def _assertEventsMatchIteration(self, turn):

    def test_cleanup(self):

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

class S3TokenMiddlewareTestBase(testtools.TestCase):

    def test_symbols(self):

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

class XmlSerializerTestCase(tests.TestCase):

    def assertSerializeDeserialize(self, d, xml, xmlns=None):

    def test_auth_request(self):

    def test_role_crud(self):

    def test_service_crud(self):

    def test_tenant_crud(self):

    def test_tenant_crud_no_description(self):

    def test_policy_list(self):

    def test_values_list(self):

    def test_collection_list(self):

    def test_collection_member(self):

    def test_v2_links_special_case(self):

    def test_xml_with_namespaced_attribute_to_dict(self):

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

class TestSingularPlural(object):

    def test_keyword_arg_condition_or_methods(self):

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

class TestRequestBodySizeLimiter(tests.TestCase):

    def setUp(self):

        def fake_app(req):

    def test_content_length_acceptable(self):

    def test_content_length_too_large(self):

    def test_request_too_large_no_content_length(self):

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

class PostgresqlMigrateTests(test_sql_upgrade.SqlUpgradeTests):

    def setUp(self):

    def config_files(self):

class MysqlMigrateTests(test_sql_upgrade.SqlUpgradeTests):

    def setUp(self):

    def config_files(self):

class PostgresqlRevokeExtensionsTests( test_sql_migrate_extensions.RevokeExtension):

    def setUp(self):

    def config_files(self):

class MysqlRevokeExtensionsTests(test_sql_migrate_extensions.RevokeExtension):

    def setUp(self):

    def config_files(self):

class Db2MigrateTests(test_sql_upgrade.SqlUpgradeTests):

    def setUp(self):

    def config_files(self):

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

class SqlUpgradeExampleExtension(test_sql_upgrade.SqlMigrateBase):

    def repo_package(self):

    def test_upgrade(self):

    def test_downgrade(self):

class SqlUpgradeOAuth1Extension(test_sql_upgrade.SqlMigrateBase):

    def repo_package(self):

    def test_upgrade(self):

    def test_downgrade(self):

class EndpointFilterExtension(test_sql_upgrade.SqlMigrateBase):

    def repo_package(self):

    def test_upgrade(self):

    def test_downgrade(self):

class FederationExtension(test_sql_upgrade.SqlMigrateBase):

    def setUp(self):

    def repo_package(self):

    def test_upgrade(self):

    def test_downgrade(self):

class RevokeExtension(test_sql_upgrade.SqlMigrateBase):

    def repo_package(self):

    def test_upgrade(self):

    def test_downgrade(self):

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

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

    def initialize_sql(self):

    def config_files(self):

    def repo_package(self):

    def setUp(self):

    def tearDown(self):

    def select_table(self, name):

    def assertTableExists(self, table_name):

    def assertTableDoesNotExist(self, table_name):

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

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

    def _migrate(self, version, repository=None, downgrade=False, current_schema=None):

    def assertTableColumns(self, table_name, expected_cols):

class SqlUpgradeTests(SqlMigrateBase):

    def test_blank_db_to_start(self):

    def test_start_version_0(self):

    def test_two_steps_forward_one_step_back(self):

    def test_upgrade_add_initial_tables(self):

    def test_upgrade_add_policy(self):

    def test_upgrade_normalize_identity(self):

    def test_upgrade_user_tenant_membership_to_metadata(self):

    def test_normalized_enabled_states(self):

    def test_downgrade_10_to_8(self):

    def test_upgrade_endpoints(self):

    def assertTenantTables(self):

    def assertProjectTables(self):

    def test_upgrade_tenant_to_project(self):

    def test_downgrade_project_to_tenant(self):

    def test_upgrade_add_group_tables(self):

    def test_upgrade_14_to_16(self):

    def test_downgrade_16_to_14(self):

    def test_downgrade_remove_group_tables(self):

    def test_downgrade_endpoints(self):

    def insert_dict(self, session, table_name, d, table=None):

    def test_upgrade_31_to_32(self):

    def test_downgrade_32_to_31(self):

    def test_downgrade_to_0(self):

    def test_upgrade_add_domain_tables(self):

    def test_metadata_table_migration(self):

    def test_upgrade_default_roles(self):

        def count_member_roles():

    def check_uniqueness_constraints(self):

    def test_upgrade_trusts(self):

    def test_fixup_role(self):

        def count_role():

    def test_legacy_endpoint_id(self):

    def test_group_project_FK_fixup(self):

    def test_assignment_metadata_migration(self):

    def test_drop_credential_constraint(self):

    def test_drop_credential_indexes(self):

    def test_downgrade_30(self):

    def test_revoked_token_index(self):

    def test_dropped_valid_index(self):

    def test_migrate_ec2_credential(self):

    def test_migrate_ec2_credential_with_conflict_project(self):

    def test_migrate_ec2_credential_with_conflict_secret(self):

    def test_migrate_ec2_credential_with_invalid_blob(self):

    def test_migrate_add_default_project_id_column_upgrade(self):

    def test_migrate_add_default_project_id_column_downgrade(self):

    def test_region_migration(self):

    def test_assignment_table_migration(self):

        def create_base_data(session):

        def populate_grants(session, base_data):

        def check_grants(session, base_data):

        def check_assignments(session, base_data):

    def test_limited_trusts_upgrade(self):

    def test_limited_trusts_downgrade(self):

    def test_limited_trusts_downgrade_trusts_cleanup(self):

    def test_upgrade_service_enabled_cols(self):

    def test_downgrade_service_enabled_cols(self):

    def test_upgrade_service_enabled_data(self):

        def add_service(**extra_data):

        def fetch_service(service_id):

    def test_downgrade_service_enabled_data(self):

        def add_service(enabled=True, **extra_data):

        def fetch_service(service_id):

    def test_upgrade_endpoint_enabled_cols(self):

    def test_downgrade_endpoint_enabled_cols(self):

    def test_upgrade_endpoint_enabled_data(self):

        def add_service():

        def add_endpoint(service_id, **extra_data):

        def fetch_endpoint(endpoint_id):

    def test_downgrade_endpoint_enabled_data(self):

        def add_service():

        def add_endpoint(service_id, enabled, **extra_data):

        def fetch_endpoint(endpoint_id):

    def test_upgrade_region_non_unique_description(self):

        def add_region():

    def test_upgrade_region_unique_description(self):

        def add_region(table):

        def get_metadata():

    def populate_user_table(self, with_pass_enab=False, with_pass_enab_domain=False):

    def populate_tenant_table(self, with_desc_enab=False, with_desc_enab_domain=False):

    def _mysql_check_all_tables_innodb(self):

class VersionTests(SqlMigrateBase):

    def test_core_initial(self):

    def test_core_max(self):

    def test_extension_not_controlled(self):

    def test_extension_initial(self):

    def test_extension_migrated(self):

    def test_unexpected_extension(self):

    def test_unversioned_extension(self):

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

class SSLTestCase(tests.TestCase):

    def setUp(self):

    def test_1way_ssl_ok(self):

    def test_2way_ssl_ok(self):

    def test_1way_ssl_with_ipv6_ok(self):

    def test_2way_ssl_with_ipv6_ok(self):

    def test_2way_ssl_fail(self):

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

class BindTest(tests.TestCase):

    def assert_kerberos_bind(self, tokens, bind_level, use_kerberos=True, success=True):

    def test_bind_disabled_with_kerb_user(self):

    def test_bind_permissive_with_kerb_user(self):

    def test_bind_permissive_with_regular_token(self):

    def test_bind_permissive_without_kerb_user(self):

    def test_bind_permissive_with_unknown_bind(self):

    def test_bind_strict_with_regular_token(self):

    def test_bind_strict_with_kerb_user(self):

    def test_bind_strict_without_kerb_user(self):

    def test_bind_strict_with_unknown_bind(self):

    def test_bind_required_with_regular_token(self):

    def test_bind_required_with_kerb_user(self):

    def test_bind_required_without_kerb_user(self):

    def test_bind_required_with_unknown_bind(self):

    def test_bind_named_with_regular_token(self):

    def test_bind_named_with_kerb_user(self):

    def test_bind_named_without_kerb_user(self):

    def test_bind_named_with_unknown_bind(self):

    def test_bind_named_with_unknown_scheme(self):

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

def create_v2_token():

def create_v3_token():

class TestTokenProvider(tests.TestCase):

    def setUp(self):

    def test_get_token_version(self):

    def test_token_format_provider_mismatch(self):

    def test_default_token_format(self):

    def test_uuid_token_format_and_no_provider(self):

    def test_default_providers_without_token_format(self):

    def test_unsupported_token_format(self):

    def test_uuid_provider(self):

    def test_provider_override_token_format(self):

    def test_provider_token_expiration_validation(self):

    def test_uuid_provider_no_oauth_fails_oauth(self):

class TestPKIProvider(object):

    def setUp(self):

    def test_get_token_id_error_handling(self):

class TestPKIProviderWithEventlet(TestPKIProvider, tests.TestCase):

    def setUp(self):

class TestPKIProviderWithStdlib(TestPKIProvider, tests.TestCase):

    def setUp(self):

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

class FakeApp(object):

    def __call__(self, env, start_response):

class UrlMiddlewareTest(tests.TestCase):

    def setUp(self):

    def start_fake_response(self, status, headers):

    def test_trailing_slash_normalization(self):

    def test_rewrite_empty_path(self):

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

def timezone(func):

 def wrapper(*args, **kwargs):

class UtilsTestCase(tests.TestCase):

    def test_hash(self):

    def test_hash_long_password(self):

    def _create_test_user(self, password=OPTIONAL):

    def test_hash_user_password_without_password(self):

    def test_hash_user_password_with_null_password(self):

    def test_hash_user_password_with_empty_password(self):

    def test_hash_ldap_user_password_without_password(self):

    def test_hash_ldap_user_password_with_null_password(self):

    def test_hash_ldap_user_password_with_empty_password(self):

    def test_hash_edge_cases(self):

    def test_hash_unicode(self):

    def test_auth_str_equal(self):

    def test_unixtime(self):

        def _test_unixtime():

class ServiceHelperTests(tests.TestCase):

    def _do_test(self):

    def test_fail_gracefully(self):

class LimitingReaderTests(tests.TestCase):

    def test_read_default_value(self):

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

class TenantTestCase(tests.TestCase):

    def setUp(self):

    def test_get_project_users_no_user(self):

    def test_list_projects_default_domain(self):

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

class RestfulTestCase(tests.SQLDriverOverrides, rest.RestfulTestCase):

    def config_files(self):

    def setup_database(self):

    def teardown_database(self):

    def generate_paste_config(self):

    def remove_generated_paste_config(self):

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

    def load_backends(self):

    def load_fixtures(self, fixtures):

    def load_sample_data(self):

    def new_ref(self):

    def new_region_ref(self):

    def new_service_ref(self):

    def new_endpoint_ref(self, service_id, **kwargs):

    def new_domain_ref(self):

    def new_project_ref(self, domain_id):

    def new_user_ref(self, domain_id, project_id=None):

    def new_group_ref(self, domain_id):

    def new_credential_ref(self, user_id, project_id=None):

    def new_role_ref(self):

    def new_policy_ref(self):

    def new_trust_ref(self, trustor_user_id, trustee_user_id, project_id=None, impersonation=None, expires=None, role_ids=None, role_names=None, remaining_uses=None):

    def create_new_default_project_for_user(self, user_id, domain_id, enable_project=True):

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

    def get_scoped_token(self):

    def get_requested_token(self, auth):

    def v3_request(self, path, **kwargs):

    def get(self, path, **kwargs):

    def head(self, path, **kwargs):

    def post(self, path, **kwargs):

    def put(self, path, **kwargs):

    def patch(self, path, **kwargs):

    def delete(self, path, **kwargs):

    def assertValidErrorResponse(self, r):

    def assertValidListLinks(self, links):

    def assertValidListResponse(self, resp, key, entity_validator, ref=None, expected_length=None, keys_to_check=None):

    def assertValidResponse(self, resp, key, entity_validator, *args, **kwargs):

    def assertValidEntity(self, entity, ref=None, keys_to_check=None):

    def assertValidISO8601ExtendedFormatDatetime(self, dt):

    def assertValidTokenResponse(self, r, user=None):

    def assertValidUnscopedTokenResponse(self, r, *args, **kwargs):

    def assertValidScopedTokenResponse(self, r, *args, **kwargs):

    def assertValidProjectScopedTokenResponse(self, r, *args, **kwargs):

    def assertValidProjectTrustScopedTokenResponse(self, r, *args, **kwargs):

    def assertValidDomainScopedTokenResponse(self, r, *args, **kwargs):

    def assertEqualTokens(self, a, b):

        def normalize(token):

    def assertValidRegionListResponse(self, resp, *args, **kwargs):

    def assertValidRegionResponse(self, resp, *args, **kwargs):

    def assertValidRegion(self, entity, ref=None):

    def assertValidServiceListResponse(self, resp, *args, **kwargs):

    def assertValidServiceResponse(self, resp, *args, **kwargs):

    def assertValidService(self, entity, ref=None):

    def assertValidEndpointListResponse(self, resp, *args, **kwargs):

    def assertValidEndpointResponse(self, resp, *args, **kwargs):

    def assertValidEndpoint(self, entity, ref=None):

    def assertValidDomainListResponse(self, resp, *args, **kwargs):

    def assertValidDomainResponse(self, resp, *args, **kwargs):

    def assertValidDomain(self, entity, ref=None):

    def assertValidProjectListResponse(self, resp, *args, **kwargs):

    def assertValidProjectResponse(self, resp, *args, **kwargs):

    def assertValidProject(self, entity, ref=None):

    def assertValidUserListResponse(self, resp, *args, **kwargs):

    def assertValidUserResponse(self, resp, *args, **kwargs):

    def assertValidUser(self, entity, ref=None):

    def assertValidGroupListResponse(self, resp, *args, **kwargs):

    def assertValidGroupResponse(self, resp, *args, **kwargs):

    def assertValidGroup(self, entity, ref=None):

    def assertValidCredentialListResponse(self, resp, *args, **kwargs):

    def assertValidCredentialResponse(self, resp, *args, **kwargs):

    def assertValidCredential(self, entity, ref=None):

    def assertValidRoleListResponse(self, resp, *args, **kwargs):

    def assertValidRoleResponse(self, resp, *args, **kwargs):

    def assertValidRole(self, entity, ref=None):

    def assertValidRoleAssignmentListResponse(self, resp, ref=None, expected_length=None):

    def assertValidRoleAssignment(self, entity, ref=None, url=None):

    def assertRoleAssignmentInListResponse( self, resp, ref, link_url=None, expected=1):

    def assertRoleAssignmentNotInListResponse( self, resp, ref, link_url=None):

    def assertValidPolicyListResponse(self, resp, *args, **kwargs):

    def assertValidPolicyResponse(self, resp, *args, **kwargs):

    def assertValidPolicy(self, entity, ref=None):

    def assertValidTrustListResponse(self, resp, *args, **kwargs):

    def assertValidTrustResponse(self, resp, *args, **kwargs):

    def assertValidTrustSummary(self, entity, ref=None):

    def assertValidTrust(self, entity, ref=None, summary=False):

    def build_auth_scope(self, project_id=None, project_name=None, project_domain_id=None, project_domain_name=None, domain_id=None, domain_name=None, trust_id=None):

    def build_password_auth(self, user_id=None, username=None, user_domain_id=None, user_domain_name=None, password=None):

    def build_token_auth(self, token):

    def build_authentication_request(self, token=None, user_id=None, username=None, user_domain_id=None, user_domain_name=None, password=None, **kwargs):

    def build_external_auth_request(self, remote_user, remote_domain=None, auth_data=None):

class VersionTestCase(RestfulTestCase):

    def test_get_version(self):

class AuthContextMiddlewareTestCase(RestfulTestCase):

    def _mock_request_object(self, token_id):

    def test_auth_context_build_by_middleware(self):

    def test_auth_context_override(self):

    def test_admin_token_auth_context(self):

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

class TestAuthInfo(test_v3.RestfulTestCase):

    def test_missing_auth_methods(self):

    def test_unsupported_auth_method(self):

    def test_missing_auth_method_data(self):

    def test_project_name_no_domain(self):

    def test_both_project_and_domain_in_scope(self):

    def test_get_method_names_duplicates(self):

    def test_get_method_data_invalid_method(self):

class TokenAPITests(object):

    def doSetUp(self):

    def test_default_fixture_scope_token(self):

    def test_v3_token_id(self):

    def test_v3_v2_intermix_non_default_domain_failed(self):

    def test_v3_v2_intermix_new_default_domain(self):

    def test_v3_v2_intermix_domain_scoped_token_failed(self):

    def test_v3_v2_intermix_non_default_project_failed(self):

    def test_v3_v2_unscoped_token_intermix(self):

    def test_v3_v2_token_intermix(self):

    def test_v3_v2_hashed_pki_token_intermix(self):

    def test_v2_v3_unscoped_token_intermix(self):

    def test_v2_v3_token_intermix(self):

    def test_rescoping_token(self):

    def test_check_token(self):

    def test_validate_token(self):

    def test_validate_token_nocatalog(self):

class TestPKITokenAPIs(test_v3.RestfulTestCase, TokenAPITests):

    def config_overrides(self):

    def setUp(self):

class TestUUIDTokenAPIs(test_v3.RestfulTestCase, TokenAPITests):

    def config_overrides(self):

    def setUp(self):

    def test_v3_token_id(self):

    def test_v3_v2_hashed_pki_token_intermix(self):

class TestTokenRevokeSelfAndAdmin(test_v3.RestfulTestCase):

    def setUp(self):

    def config_overrides(self):

OpenStack Index

Previous

Next