keystoneclient.tests.unit.v3 package

Submodules

keystoneclient.tests.unit.v3.client_fixtures module

keystoneclient.tests.unit.v3.client_fixtures.auth_response_body()
keystoneclient.tests.unit.v3.client_fixtures.domain_scoped_token()
keystoneclient.tests.unit.v3.client_fixtures.project_scoped_token()
keystoneclient.tests.unit.v3.client_fixtures.trust_token()
keystoneclient.tests.unit.v3.client_fixtures.unscoped_token()

keystoneclient.tests.unit.v3.saml2_fixtures module

keystoneclient.tests.unit.v3.test_access module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase

test_building_domain_scoped_accessinfo()
test_building_project_scoped_accessinfo()
test_building_unscoped_accessinfo()
test_federated_property_standard_token()

Check if is_federated property returns expected value.

test_oauth_access()
test_override_auth_token()
test_will_expire_soon()

keystoneclient.tests.unit.v3.test_auth module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase

setUp()
test_allow_override_of_auth_token()
test_auth_redirect()
test_auth_url_token_authentication()
test_authenticate_failure()
test_authenticate_success()
test_authenticate_success_domain_username_password_scoped()
test_authenticate_success_password_unscoped()
test_authenticate_success_token_domain_scoped()
test_authenticate_success_token_project_scoped()
test_authenticate_success_token_unscoped()
test_authenticate_success_userid_password_domain_scoped()
test_authenticate_success_userid_password_project_scoped()

keystoneclient.tests.unit.v3.test_auth_saml2 module

class keystoneclient.tests.unit.v3.test_auth_saml2.AuthenticateviaADFSTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

ADDRESS_XPATH = '/s:Envelope/s:Body/trust:RequestSecurityToken/wsp:AppliesTo/wsa:EndpointReference/wsa:Address'
GROUP = 'auth'
NAMESPACES = {'wsa': 'http://www.w3.org/2005/08/addressing', 'a': 'http://www.w3.org/2005/08/addressing', 'o': 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'wsp': 'http://schemas.xmlsoap.org/ws/2004/09/policy', 's': 'http://www.w3.org/2003/05/soap-envelope', 'trust': 'http://docs.oasis-open.org/ws-sx/ws-trust/200512'}
PASSWORD_XPATH = '/s:Envelope/s:Header/o:Security/o:UsernameToken/o:Password'
TO_XPATH = '/s:Envelope/s:Header/a:To'
USER_XPATH = '/s:Envelope/s:Header/o:Security/o:UsernameToken/o:Username'
setUp()
test_access_sp_no_cookies_fail()
test_adfs_request_password()
test_adfs_request_to()
test_adfs_request_user()
test_check_valid_token_when_authenticated()
test_conf_params()
test_end_to_end_workflow()
test_get_adfs_security_token()

Test ADFSUnscopedToken._get_adfs_security_token().

test_get_adfs_security_token_authn_fail()

Test proper parsing XML fault after bad authentication.

An exceptions.AuthorizationFailure should be raised including error message from the XML message indicating where was the problem.

test_get_adfs_security_token_bad_response()

Test proper handling HTTP 500 and mangled (non XML) response.

This should never happen yet, keystoneclient should be prepared and correctly raise exceptions.InternalServerError once it cannot parse XML fault message

test_prepare_adfs_request_address()
test_prepare_sp_request()
test_send_assertion_to_service_provider_bad_status()
class keystoneclient.tests.unit.v3.test_auth_saml2.AuthenticateviaSAML2Tests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

GROUP = 'auth'
setUp()
test_conf_params()
test_consumer_url_mismatch()
test_consumer_url_mismatch_success()
test_custom_302_redirection()
test_end_to_end_workflow()
test_fail_basicauth_idp_authentication()
test_get_unscoped_token_when_authenticated()
test_initial_sp_call()

Test initial call, expect SOAP message.

test_initial_sp_call_invalid_response()

Send initial SP HTTP request and receive wrong server response.

test_initial_sp_call_when_saml_authenticated()
test_mising_username_password_in_plugin()
test_send_authn_req_to_idp()
test_send_authn_response_to_sp()
class keystoneclient.tests.unit.v3.test_auth_saml2.ScopeFederationTokenTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_auth_saml2.AuthenticateviaSAML2Tests

TEST_TOKEN = u'3e2813b7ba0b4006840c3825860b86ed'
setUp()
test_dont_set_project_nor_domain()
test_scope_saml2_token_to_domain()
test_scope_saml2_token_to_invalid_domain()
test_scope_saml2_token_to_invalid_project()
test_scope_saml2_token_to_project()
keystoneclient.tests.unit.v3.test_auth_saml2.make_oneline(s)

keystoneclient.tests.unit.v3.test_client module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase

test_auth_ref_load()
test_auth_ref_load_with_overridden_arguments()
test_client_params()
test_client_with_region_name_passes_to_service_catalog()
test_client_without_auth_params()
test_domain_scoped_init()
test_init_err_no_auth_url()
test_management_url_is_updated_with_domain()
test_management_url_is_updated_with_project()
test_project_scoped_init()
test_trust_init()
test_unscoped_init()

keystoneclient.tests.unit.v3.test_credentials module

class keystoneclient.tests.unit.v3.test_credentials.CredentialTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_create_data_not_blob()
test_update_data_not_blob()

keystoneclient.tests.unit.v3.test_discover module

class keystoneclient.tests.unit.v3.test_discover.DiscoverKeystoneTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.UnauthenticatedTestCase

setUp()
test_get_version_local()

keystoneclient.tests.unit.v3.test_domains module

class keystoneclient.tests.unit.v3.test_domains.DomainTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_list_filter_disabled()
test_list_filter_enabled()
test_list_filter_name()
test_update_enabled_defaults_to_none()

keystoneclient.tests.unit.v3.test_endpoint_filter module

class keystoneclient.tests.unit.v3.test_endpoint_filter.EndpointFilterTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.test_endpoint_filter.EndpointTestUtils

Test project-endpoint associations (a.k.a. EndpointFilter Extension).

Endpoint filter provides associations between service endpoints and projects. These assciations are then used to create ad-hoc catalogs for each project-scoped token request.

new_project_ref(**kwargs)
setUp()
test_add_endpoint_to_project_via_id()
test_add_endpoint_to_project_via_obj()
test_check_endpoint_in_project()
test_delete_endpoint_from_project()
test_list_endpoints_for_project()
test_list_projects_for_endpoint()
class keystoneclient.tests.unit.v3.test_endpoint_filter.EndpointTestUtils

Bases: object

Mixin class with shared methods between Endpoint Filter & Policy.

new_endpoint_ref(**kwargs)
new_ref(**kwargs)

keystoneclient.tests.unit.v3.test_endpoint_policy module

class keystoneclient.tests.unit.v3.test_endpoint_policy.EndpointPolicyTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.test_endpoint_filter.EndpointTestUtils

Test policy-endpoint associations (a.k.a. EndpointPolicy Extension).

new_policy_ref(**kwargs)
new_region_ref(**kwargs)
new_service_ref(**kwargs)
setUp()
test_check_policy_association_for_endpoint_via_id()
test_check_policy_association_for_endpoint_via_obj()
test_check_policy_association_for_region_and_service_via_id()
test_check_policy_association_for_region_and_service_via_obj()
test_check_policy_association_for_service_via_id()
test_check_policy_association_for_service_via_obj()
test_create_policy_association_for_endpoint_via_id()
test_create_policy_association_for_endpoint_via_obj()
test_create_policy_association_for_region_and_service_via_id()
test_create_policy_association_for_region_and_service_via_obj()
test_create_policy_association_for_service_via_id()
test_create_policy_association_for_service_via_obj()
test_delete_policy_association_for_endpoint_via_id()
test_delete_policy_association_for_endpoint_via_obj()
test_delete_policy_association_for_region_and_service_via_id()
test_delete_policy_association_for_region_and_service_via_obj()
test_delete_policy_association_for_service_via_id()
test_delete_policy_association_for_service_via_obj()
test_get_policy_for_endpoint()
test_list_endpoints_for_policy()

keystoneclient.tests.unit.v3.test_endpoints module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.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.unit.v3.test_federation module

class keystoneclient.tests.unit.v3.test_federation.EntityManagerTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

test_create_object_expect_fail()
class keystoneclient.tests.unit.v3.test_federation.FederatedTokenTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

setUp()
test_federated_property_federated_token()

Check if is_federated property returns expected value.

test_get_user_domain_id()

Ensure a federated user’s domain ID does not exist.

test_get_user_domain_name()

Ensure a federated user’s domain name does not exist.

class keystoneclient.tests.unit.v3.test_federation.FederationDomainTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

new_ref(**kwargs)
setUp()
test_list_accessible_domains()
class keystoneclient.tests.unit.v3.test_federation.FederationProjectTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

new_ref(**kwargs)
setUp()
test_list_accessible_projects()
class keystoneclient.tests.unit.v3.test_federation.IdentityProviderTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_create()
test_positional_parameters_expect_fail()

Ensure CrudManager raises TypeError exceptions.

After passing wrong number of positional arguments an exception should be raised.

Operations to be tested:
  • create()
  • get()
  • list()
  • delete()
  • update()
class keystoneclient.tests.unit.v3.test_federation.MappingTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_create()
class keystoneclient.tests.unit.v3.test_federation.ProtocolTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

build_parts(identity_provider, protocol_id=None)

Build array used to construct mocking URL.

Construct and return array with URL parts later used by methods like utils.TestCase.stub_entity(). Example of URL: OS-FEDERATION/identity_providers/{idp_id}/ protocols/{protocol_id}

new_ref(**kwargs)
setUp()
test_build_url_default_base_url()
test_build_url_provide_base_url()
test_build_url_w_idp_id()

Test whether kwargs base_url discards object’s base_url

This test shows, that when base_url is specified in the dict_args_in_out dictionary, values like identity_provider_id are not taken into consideration while building the url.

test_create()

Test creating federation protocol tied to an Identity Provider.

URL to be tested: PUT /OS-FEDERATION/identity_providers/ $identity_provider/protocols/$protocol

test_delete()

Delete federation protocol object.

URL to be tested: DELETE /OS-FEDERATION/identity_providers/ $identity_provider/protocols/$protocol

test_get()

Fetch federation protocol object.

URL to be tested: GET /OS-FEDERATION/identity_providers/ $identity_provider/protocols/$protocol

test_list()

Test listing all federation protocols tied to the Identity Provider.

URL to be tested: GET /OS-FEDERATION/identity_providers/ $identity_provider/protocols

test_list_params()
test_update()

Test updating federation protocol

URL to be tested: PATCH /OS-FEDERATION/identity_providers/ $identity_provider/protocols/$protocol

class keystoneclient.tests.unit.v3.test_federation.ServiceProviderTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_create()
test_positional_parameters_expect_fail()

Ensure CrudManager raises TypeError exceptions.

After passing wrong number of positional arguments an exception should be raised.

Operations to be tested:
  • create()
  • get()
  • list()
  • delete()
  • update()

keystoneclient.tests.unit.v3.test_groups module

class keystoneclient.tests.unit.v3.test_groups.GroupTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_list_groups_for_domain()
test_list_groups_for_user()

keystoneclient.tests.unit.v3.test_oauth1 module

class keystoneclient.tests.unit.v3.test_oauth1.AccessTokenTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_oauth1.TokenTests

setUp()
test_create_access_token_expires_at()
class keystoneclient.tests.unit.v3.test_oauth1.AuthenticateWithOAuthTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_oauth1.TokenTests

setUp()
test_oauth_authenticate_success()
class keystoneclient.tests.unit.v3.test_oauth1.BaseTest(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

setUp()
class keystoneclient.tests.unit.v3.test_oauth1.ConsumerTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_oauth1.BaseTest, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_description_is_optional()
test_description_not_included()
class keystoneclient.tests.unit.v3.test_oauth1.RequestTokenTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_oauth1.TokenTests

setUp()
test_authorize_request_token()
test_create_request_token()
class keystoneclient.tests.unit.v3.test_oauth1.TestOAuthLibModule(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase

test_no_oauthlib_installed()
class keystoneclient.tests.unit.v3.test_oauth1.TokenTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_oauth1.BaseTest

keystoneclient.tests.unit.v3.test_policies module

class keystoneclient.tests.unit.v3.test_policies.PolicyTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()

keystoneclient.tests.unit.v3.test_projects module

class keystoneclient.tests.unit.v3.test_projects.ProjectTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_create_with_parent()
test_create_with_parent_and_parent_id()
test_create_with_parent_id()
test_get_with_invalid_parameters_combination()
test_get_with_parents_as_ids()
test_get_with_parents_as_ids_and_subtree_as_ids()
test_get_with_parents_as_list()
test_get_with_parents_as_list_and_subtree_as_list()
test_get_with_subtree_as_ids()
test_get_with_subtree_as_list()
test_list_projects_for_domain()
test_list_projects_for_user()
test_update_with_parent_project()

keystoneclient.tests.unit.v3.test_regions module

class keystoneclient.tests.unit.v3.test_regions.RegionTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_update_enabled_defaults_to_none()

keystoneclient.tests.unit.v3.test_role_assignments module

class keystoneclient.tests.unit.v3.test_role_assignments.RoleAssignmentsTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

setUp()
test_all_assignments_list()
test_create()
test_delete()
test_domain_and_project_list()
test_domain_assignments_list()
test_effective_assignments_list()
test_find()
test_get()
test_group_assignments_list()
test_list_params()
test_project_assignments_list()
test_role_assignments_inherited_list()
test_role_assignments_list()
test_update()
test_user_and_group_list()
test_user_assignments_list()

keystoneclient.tests.unit.v3.test_roles module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_domain_group_role_check()
test_domain_group_role_grant()
test_domain_group_role_list()
test_domain_group_role_revoke()
test_domain_project_role_check_fails()
test_domain_project_role_grant_fails()
test_domain_project_role_list_fails()
test_domain_project_role_revoke_fails()
test_domain_role_check()
test_domain_role_grant()
test_domain_role_list()
test_domain_role_revoke()
test_project_group_role_check()
test_project_group_role_grant()
test_project_group_role_list()
test_project_group_role_revoke()
test_project_role_check()
test_project_role_grant()
test_project_role_list()
test_project_role_revoke()
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.unit.v3.test_service_catalog module

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

Bases: keystoneclient.tests.unit.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_service_name()
test_service_catalog_url_for_region_names()
test_service_catalog_without_name()
class keystoneclient.tests.unit.v3.test_service_catalog.ServiceCatalogV3Test(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.test_service_catalog.ServiceCatalogTest

test_building_a_service_catalog()
test_service_catalog_endpoints()
test_service_catalog_multiple_service_types()

keystoneclient.tests.unit.v3.test_services module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_list_filter_name()
test_list_filter_type()

keystoneclient.tests.unit.v3.test_simple_cert module

class keystoneclient.tests.unit.v3.test_simple_cert.SimpleCertTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, testresources.ResourcedTestCase

resources = [('examples', <testresources.FixtureResource object at 0x7f9351f7c310>)]
test_get_ca_certificate()
test_get_certificates()
keystoneclient.tests.unit.v3.test_simple_cert.load_tests(loader, tests, pattern)

keystoneclient.tests.unit.v3.test_tokens module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase, testresources.ResourcedTestCase

resources = [('examples', <testresources.FixtureResource object at 0x7f9351f7c310>)]
test_get_revoked()
test_revoke_token_with_access_info_instance()
test_revoke_token_with_token_id()
test_validate_token_catalog()
test_validate_token_invalid()
test_validate_token_nocatalog()
test_validate_token_with_access_info()
test_validate_token_with_token_id()
keystoneclient.tests.unit.v3.test_tokens.load_tests(loader, tests, pattern)

keystoneclient.tests.unit.v3.test_trusts module

class keystoneclient.tests.unit.v3.test_trusts.TrustTests(*args, **kwargs)

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_create()
test_create_expires()
test_create_imp()
test_create_limited_uses()
test_create_roles()
test_create_roles_imp()
test_list_filter_trustee()
test_list_filter_trustor()
test_update()

keystoneclient.tests.unit.v3.test_users module

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

Bases: keystoneclient.tests.unit.v3.utils.TestCase, keystoneclient.tests.unit.v3.utils.CrudTests

new_ref(**kwargs)
setUp()
test_add_user_to_group()
test_check_user_in_group()
test_create_doesnt_log_password()
test_create_with_project()
test_create_with_project_and_default_project()
test_list_users_in_group()
test_remove_user_from_group()
test_update_doesnt_log_password()
test_update_password()
test_update_password_with_bad_inputs()
test_update_with_project()
test_update_with_project_and_default_project(ref=None)

keystoneclient.tests.unit.v3.utils module

class keystoneclient.tests.unit.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(ref=None, req_ref=None)
test_delete(ref=None)
test_find(ref=None)
test_get(ref=None)
test_list(ref_list=None, expected_path=None, expected_query=None, **filter_kwargs)
test_list_params()
test_update(ref=None, req_ref=None)
class keystoneclient.tests.unit.v3.utils.TestCase(*args, **kwargs)

Bases: keystoneclient.tests.unit.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.unit.v3.utils.UnauthenticatedTestCase(*args, **kwargs)

Bases: keystoneclient.tests.unit.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.unit.v3.utils.parameterize(ref)

Rewrites attributes to match the kwarg naming convention in client.

>>> parameterize({'project_id': 0})
{'project': 0}

Module contents

Table Of Contents

Previous topic

keystoneclient.tests.unit.v2_0 package

Next topic

keystoneclient.v2_0 package

This Page