v2_0 Package

client_fixtures Module

keystoneclient.tests.v2_0.client_fixtures.auth_response_body()
keystoneclient.tests.v2_0.client_fixtures.project_scoped_token()
keystoneclient.tests.v2_0.client_fixtures.unscoped_token()

fakes Module

class keystoneclient.tests.v2_0.fakes.FakeHTTPClient(**kwargs)

Bases: keystoneclient.tests.fakes.FakeClient

delete_OS_KSADM_roles_1(**kw)
delete_OS_KSADM_services_1(**kw)
delete_tenants_2(**kw)
delete_users_1(**kw)
delete_users_1_credentials_OS_EC2_2(**kw)
delete_users_1_roles_OS_KSADM_1(**kw)
get(**kw)
get_OS_KSADM_roles(**kw)
get_OS_KSADM_roles_1(**kw)
get_OS_KSADM_services(**kw)
get_OS_KSADM_services_1(**kw)
get_endpoints(**kw)
get_extensions(**kw)
get_tenants(**kw)
get_tenants_1(**kw)
get_tenants_1_users_1_roles(**kw)
get_tenants_2(**kw)
get_tokens_887665443383838(**kw)
get_tokens_887665443383838_endpoints(**kw)
get_users(**kw)
get_users_1(**kw)
get_users_1_credentials_OS_EC2(**kw)
get_users_1_credentials_OS_EC2_2(**kw)
get_users_1_roles(**kw)
patch_OS_KSCRUD_users_1(**kw)
post_OS_KSADM_roles(**kw)
post_OS_KSADM_services(**kw)
post_endpoints(**kw)
post_tenants(**kw)
post_tenants_2(**kw)
post_tokens(**kw)
post_users(**kw)
post_users_1_credentials_OS_EC2(**kw)
put_tenants_1_users_1_roles_OS_KSADM_1(**kw)
put_users_1(**kw)
put_users_1_OS_KSADM_password(**kw)
put_users_1_roles_OS_KSADM_1(**kw)

test_access Module

class keystoneclient.tests.v2_0.test_access.AccessInfoTest(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase, testresources.ResourcedTestCase

resources = [('examples', <testresources.FixtureResource object at 0x6086110>)]
test_building_scoped_accessinfo()
test_building_unscoped_accessinfo()
test_diablo_token()
test_grizzly_token()
test_will_expire_soon()
keystoneclient.tests.v2_0.test_access.load_tests(loader, tests, pattern)

test_auth Module

class keystoneclient.tests.v2_0.test_auth.AuthenticateAgainstKeystoneTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.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_expired(*args, **kw)
test_authenticate_success_password_scoped(*args, **kw)
test_authenticate_success_password_unscoped(*args, **kw)
test_authenticate_success_token_scoped(*args, **kw)
test_authenticate_success_token_scoped_trust(*args, **kw)
test_authenticate_success_token_unscoped(*args, **kw)

test_client Module

class keystoneclient.tests.v2_0.test_client.KeystoneClientTest(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.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_init_err_no_auth_url()
test_management_url_is_updated(*args, **kw)
test_scoped_init(*args, **kw)
test_unscoped_init(*args, **kw)

test_discovery Module

class keystoneclient.tests.v2_0.test_discovery.DiscoverKeystoneTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.UnauthenticatedTestCase

setUp()
test_get_version_local(*args, **kw)
test_get_versions(*args, **kw)

test_ec2 Module

class keystoneclient.tests.v2_0.test_ec2.EC2Tests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

test_create(*args, **kw)
test_delete(*args, **kw)
test_get(*args, **kw)
test_list(*args, **kw)

test_endpoints Module

class keystoneclient.tests.v2_0.test_endpoints.EndpointTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

setUp()
test_create(*args, **kw)
test_delete(*args, **kw)
test_list(*args, **kw)

test_roles Module

class keystoneclient.tests.v2_0.test_roles.RoleTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

setUp()
test_add_user_role(*args, **kw)
test_add_user_role_tenant(*args, **kw)
test_create(*args, **kw)
test_delete(*args, **kw)
test_get(*args, **kw)
test_list(*args, **kw)
test_remove_user_role(*args, **kw)
test_remove_user_role_tenant(*args, **kw)
test_roles_for_user(*args, **kw)
test_roles_for_user_tenant(*args, **kw)

test_service_catalog Module

class keystoneclient.tests.v2_0.test_service_catalog.ServiceCatalogTest(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.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_service_name()
test_service_catalog_url_for_region_names()

test_services Module

class keystoneclient.tests.v2_0.test_services.ServiceTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

setUp()
test_create(*args, **kw)
test_delete(*args, **kw)
test_get(*args, **kw)
test_list(*args, **kw)

test_shell Module

class keystoneclient.tests.v2_0.test_shell.ShellTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

assert_called(method, url, body=None, **kwargs)
assert_called_anytime(method, url, body=None)
run_command(cmd)
setUp()

Patch os.environ to avoid required auth info.

tearDown()
test_bash_completion()
test_bootstrap()
test_catalog()
test_ec2_credentials_create()
test_ec2_credentials_delete()
test_ec2_credentials_get()
test_ec2_credentials_list()
test_endpoint_create()
test_endpoint_list()
test_help()
test_password_update()
test_role_create()
test_role_delete()
test_role_get()
test_role_list()
test_service_create()
test_service_delete()
test_service_get()
test_service_list()
test_tenant_create()
test_tenant_delete()
test_tenant_get()
test_tenant_list()
test_tenant_update()
test_user_create()
test_user_create_password_prompt(*args, **keywargs)
test_user_delete()
test_user_get()
test_user_list()
test_user_password_update()
test_user_role_add()
test_user_role_list()
test_user_role_remove()
test_user_update()

test_tenants Module

class keystoneclient.tests.v2_0.test_tenants.TenantTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

setUp()
test_add_user(*args, **kw)
test_create(*args, **kw)
test_delete(*args, **kw)
test_duplicate_create(*args, **kw)
test_get(*args, **kw)
test_list(*args, **kw)
test_list_limit(*args, **kw)
test_list_limit_marker(*args, **kw)
test_list_marker(*args, **kw)
test_remove_user(*args, **kw)
test_tenant_add_user(*args, **kw)
test_tenant_remove_user(*args, **kw)
test_update(*args, **kw)
test_update_empty_description(*args, **kw)

test_tokens Module

class keystoneclient.tests.v2_0.test_tokens.TokenTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

test_delete(*args, **kw)

test_users Module

class keystoneclient.tests.v2_0.test_users.UserTests(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.TestCase

setUp()
test_create(*args, **kw)
test_create_user_without_email(*args, **kw)
test_delete(*args, **kw)
test_get(*args, **kw)
test_list(*args, **kw)
test_list_limit(*args, **kw)
test_list_limit_marker(*args, **kw)
test_list_marker(*args, **kw)
test_update(*args, **kw)
test_update_own_password(*args, **kw)

utils Module

class keystoneclient.tests.v2_0.utils.TestCase(*args, **kwargs)

Bases: keystoneclient.tests.v2_0.utils.UnauthenticatedTestCase

TEST_ADMIN_IDENTITY_ENDPOINT = 'http://127.0.0.1:35357/v2.0'
TEST_SERVICE_CATALOG = [{'endpoints': [{'adminURL': 'http://cdn.admin-nets.local:8774/v1.0', 'region': 'RegionOne', 'internalURL': 'http://127.0.0.1:8774/v1.0', 'publicURL': 'http://cdn.admin-nets.local:8774/v1.0/'}], 'type': 'nova_compat', 'name': 'nova_compat'}, {'endpoints': [{'adminURL': 'http://nova/novapi/admin', 'region': 'RegionOne', 'internalURL': 'http://nova/novapi/internal', 'publicURL': 'http://nova/novapi/public'}], 'type': 'compute', 'name': 'nova'}, {'endpoints': [{'adminURL': 'http://glance/glanceapi/admin', 'region': 'RegionOne', 'internalURL': 'http://glance/glanceapi/internal', 'publicURL': 'http://glance/glanceapi/public'}], 'type': 'image', 'name': 'glance'}, {'endpoints': [{'adminURL': 'http://127.0.0.1:35357/v2.0', 'region': 'RegionOne', 'internalURL': 'http://127.0.0.1:5000/v2.0', 'publicURL': 'http://127.0.0.1:5000/v2.0'}], 'type': 'identity', 'name': 'keystone'}, {'endpoints': [{'adminURL': 'http://swift/swiftapi/admin', 'region': 'RegionOne', 'internalURL': 'http://swift/swiftapi/internal', 'publicURL': 'http://swift/swiftapi/public'}], 'type': 'object-store', 'name': 'swift'}]
setUp()
stub_auth(**kwargs)
class keystoneclient.tests.v2_0.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/v2.0'
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/v2.0'