keystoneclient.tests.v3 package
Submodules
keystoneclient.tests.v3.client_fixtures module
keystoneclient.tests.v3.test_access module
-
class keystoneclient.tests.v3.test_access.AccessInfoTest(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase
-
test_building_domain_scoped_accessinfo()
-
test_building_project_scoped_accessinfo()
-
test_building_unscoped_accessinfo()
-
test_will_expire_soon()
keystoneclient.tests.v3.test_auth module
-
class keystoneclient.tests.v3.test_auth.AuthenticateAgainstKeystoneTests(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase
-
setUp()
-
test_allow_override_of_auth_token(*args, **kw)
-
test_auth_redirect(*args, **kw)
-
test_auth_url_token_authentication(*args, **kw)
-
test_authenticate_failure(*args, **kw)
-
test_authenticate_success(*args, **kw)
-
test_authenticate_success_domain_username_password_scoped(*args, **kw)
-
test_authenticate_success_password_unscoped(*args, **kw)
-
test_authenticate_success_token_domain_scoped(*args, **kw)
-
test_authenticate_success_token_project_scoped(*args, **kw)
-
test_authenticate_success_token_unscoped(*args, **kw)
-
test_authenticate_success_userid_password_domain_scoped(*args, **kw)
-
test_authenticate_success_userid_password_project_scoped(*args, **kw)
keystoneclient.tests.v3.test_client module
-
class keystoneclient.tests.v3.test_client.KeystoneClientTest(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase
-
test_auth_ref_load(*args, **kw)
-
test_auth_ref_load_with_overridden_arguments(*args, **kw)
-
test_client_with_region_name_passes_to_service_catalog(*args, **kw)
-
test_domain_scoped_init(*args, **kw)
-
test_init_err_no_auth_url()
-
test_management_url_is_updated_with_domain(*args, **kw)
-
test_management_url_is_updated_with_project(*args, **kw)
-
test_project_scoped_init(*args, **kw)
-
test_trust_init(*args, **kw)
-
test_unscoped_init(*args, **kw)
keystoneclient.tests.v3.test_domains module
-
class keystoneclient.tests.v3.test_domains.DomainTests(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase, keystoneclient.tests.v3.utils.CrudTests
-
new_ref(**kwargs)
-
setUp()
-
test_list_filter_disabled()
-
test_list_filter_enabled()
-
test_list_filter_name()
keystoneclient.tests.v3.test_endpoints module
-
class keystoneclient.tests.v3.test_endpoints.EndpointTests(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase, keystoneclient.tests.v3.utils.CrudTests
-
new_ref(**kwargs)
-
setUp()
-
test_create_admin_interface()
-
test_create_internal_interface()
-
test_create_invalid_interface()
-
test_create_public_interface()
-
test_list_admin_interface()
-
test_list_internal_interface()
-
test_list_invalid_interface()
-
test_list_public_interface()
-
test_update_admin_interface()
-
test_update_internal_interface()
-
test_update_invalid_interface()
-
test_update_public_interface()
keystoneclient.tests.v3.test_roles module
-
class keystoneclient.tests.v3.test_roles.RoleTests(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase, keystoneclient.tests.v3.utils.CrudTests
-
new_ref(**kwargs)
-
setUp()
-
test_domain_group_role_check(*args, **kw)
-
test_domain_group_role_grant(*args, **kw)
-
test_domain_group_role_list(*args, **kw)
-
test_domain_group_role_revoke(*args, **kw)
-
test_domain_project_role_check_fails()
-
test_domain_project_role_grant_fails(*args, **kw)
-
test_domain_project_role_list_fails()
-
test_domain_project_role_revoke_fails()
-
test_domain_role_check(*args, **kw)
-
test_domain_role_grant(*args, **kw)
-
test_domain_role_list(*args, **kw)
-
test_domain_role_revoke(*args, **kw)
-
test_project_group_role_check(*args, **kw)
-
test_project_group_role_grant(*args, **kw)
-
test_project_group_role_list(*args, **kw)
-
test_project_group_role_revoke(*args, **kw)
-
test_project_role_check(*args, **kw)
-
test_project_role_grant(*args, **kw)
-
test_project_role_list(*args, **kw)
-
test_project_role_revoke(*args, **kw)
-
test_user_group_role_check_fails()
-
test_user_group_role_grant_fails()
-
test_user_group_role_list_fails()
-
test_user_group_role_revoke_fails()
keystoneclient.tests.v3.test_service_catalog module
-
class keystoneclient.tests.v3.test_service_catalog.ServiceCatalogTest(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase
-
setUp()
-
test_building_a_service_catalog()
-
test_servcie_catalog_get_url_region_names()
-
test_service_catalog_empty()
-
test_service_catalog_endpoints()
-
test_service_catalog_get_endpoints_region_names()
-
test_service_catalog_param_overrides_body_region()
-
test_service_catalog_regions()
-
test_service_catalog_url_for_region_names()
keystoneclient.tests.v3.test_trusts module
-
class keystoneclient.tests.v3.test_trusts.TrustTests(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase, keystoneclient.tests.v3.utils.CrudTests
-
new_ref(**kwargs)
-
setUp()
-
test_create()
-
test_create_expires()
-
test_create_imp()
-
test_create_roles()
-
test_create_roles_imp()
-
test_list_filter_trustee()
-
test_list_filter_trustor()
-
test_update()
keystoneclient.tests.v3.test_users module
-
class keystoneclient.tests.v3.test_users.UserTests(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.TestCase, keystoneclient.tests.v3.utils.CrudTests
-
new_ref(**kwargs)
-
setUp()
-
test_add_user_to_group(*args, **kw)
-
test_check_user_in_group(*args, **kw)
-
test_create_with_project(*args, **kw)
-
test_create_with_project_and_default_project(*args, **kw)
-
test_list_users_in_group(*args, **kw)
-
test_remove_user_from_group(*args, **kw)
-
test_update_password(*args, **kw)
-
test_update_password_with_bad_inputs()
-
test_update_with_project(*args, **kw)
-
test_update_with_project_and_default_project(*args, **kw)
keystoneclient.tests.v3.utils module
-
class keystoneclient.tests.v3.utils.CrudTests
Bases: object
-
assertEntityRequestBodyIs(entity)
-
collection_key = None
-
encode(entity)
-
key = None
-
manager = None
-
model = None
-
new_ref(**kwargs)
-
path_prefix = None
-
stub_entity(method, parts=None, entity=None, id=None, **kwargs)
-
test_create(*args, **kw)
-
test_delete(*args, **kw)
-
test_find(*args, **kw)
-
test_get(*args, **kw)
-
test_list(*args, **kw)
-
test_list_params(*args, **kw)
-
test_update(*args, **kw)
-
class keystoneclient.tests.v3.utils.TestCase(*args, **kwargs)
Bases: keystoneclient.tests.v3.utils.UnauthenticatedTestCase
-
TEST_ADMIN_IDENTITY_ENDPOINT = 'http://127.0.0.1:35357/v3'
-
TEST_SERVICE_CATALOG = [{'endpoints': [{'url': 'http://cdn.admin-nets.local:8774/v1.0/', 'interface': 'public', 'region': 'RegionOne'}, {'url': 'http://127.0.0.1:8774/v1.0', 'interface': 'internal', 'region': 'RegionOne'}, {'url': 'http://cdn.admin-nets.local:8774/v1.0', 'interface': 'admin', 'region': 'RegionOne'}], 'type': 'nova_compat'}, {'endpoints': [{'url': 'http://nova/novapi/public', 'interface': 'public', 'region': 'RegionOne'}, {'url': 'http://nova/novapi/internal', 'interface': 'internal', 'region': 'RegionOne'}, {'url': 'http://nova/novapi/admin', 'interface': 'admin', 'region': 'RegionOne'}], 'type': 'compute'}, {'endpoints': [{'url': 'http://glance/glanceapi/public', 'interface': 'public', 'region': 'RegionOne'}, {'url': 'http://glance/glanceapi/internal', 'interface': 'internal', 'region': 'RegionOne'}, {'url': 'http://glance/glanceapi/admin', 'interface': 'admin', 'region': 'RegionOne'}], 'type': 'image', 'name': 'glance'}, {'endpoints': [{'url': 'http://127.0.0.1:5000/v3', 'interface': 'public', 'region': 'RegionOne'}, {'url': 'http://127.0.0.1:5000/v3', 'interface': 'internal', 'region': 'RegionOne'}, {'url': 'http://127.0.0.1:35357/v3', 'interface': 'admin', 'region': 'RegionOne'}], 'type': 'identity'}, {'endpoints': [{'url': 'http://swift/swiftapi/public', 'interface': 'public', 'region': 'RegionOne'}, {'url': 'http://swift/swiftapi/internal', 'interface': 'internal', 'region': 'RegionOne'}, {'url': 'http://swift/swiftapi/admin', 'interface': 'admin', 'region': 'RegionOne'}], 'type': 'object-store'}]
-
setUp()
-
stub_auth(subject_token=None, **kwargs)
-
class keystoneclient.tests.v3.utils.UnauthenticatedTestCase(*args, **kwargs)
Bases: keystoneclient.tests.utils.TestCase
Class used as base for unauthenticated calls.
-
TEST_ADMIN_URL = 'http://127.0.0.1:35357/v3'
-
TEST_ROOT_ADMIN_URL = 'http://127.0.0.1:35357/'
-
TEST_ROOT_URL = 'http://127.0.0.1:5000/'
-
TEST_URL = 'http://127.0.0.1:5000/v3'
-
keystoneclient.tests.v3.utils.parameterize(ref)
Rewrites attributes to match the kwarg naming convention in client.
>>> parameterize({'project_id': 0})
{'project': 0}
Module contents