keystoneauth1.fixture.v3 module

class keystoneauth1.fixture.v3.Token(expires=None, issued=None, user_id=None, user_name=None, user_domain_id=None, user_domain_name=None, methods=None, project_id=None, project_name=None, project_domain_id=None, project_domain_name=None, domain_id=None, domain_name=None, trust_id=None, trust_impersonation=None, trustee_user_id=None, trustor_user_id=None, application_credential_id=None, application_credential_access_rules=None, oauth_access_token_id=None, oauth_consumer_id=None, audit_id=None, audit_chain_id=None, is_admin_project=None, project_is_domain=None, oauth2_thumbprint=None)

Bases: Dict[str, Any]

A V3 Keystone token that can be used for testing.

This object is designed to allow clients to generate a correct V3 token for use in there test code. It should prevent clients from having to know the correct token format and allow them to test the portions of token handling that matter to them and not copy and paste sample.

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'keystoneauth1.fixture.v3', '__doc__': 'A V3 Keystone token that can be used for testing.\n\n    This object is designed to allow clients to generate a correct V3 token for\n    use in there test code. It should prevent clients from having to know the\n    correct token format and allow them to test the portions of token handling\n    that matter to them and not copy and paste sample.\n    ', '__init__': <function Token.__init__>, 'root': <property object>, 'expires_str': <property object>, 'expires': <property object>, 'issued_str': <property object>, 'issued': <property object>, '_user': <property object>, 'user_id': <property object>, 'user_name': <property object>, '_user_domain': <property object>, 'user_domain_id': <property object>, 'user_domain_name': <property object>, 'methods': <property object>, 'project_id': <property object>, 'project_is_domain': <property object>, 'project_name': <property object>, 'project_domain_id': <property object>, 'project_domain_name': <property object>, 'domain_id': <property object>, 'domain_name': <property object>, 'system': <property object>, 'trust_id': <property object>, 'trust_impersonation': <property object>, 'trustee_user_id': <property object>, 'trustor_user_id': <property object>, 'application_credential_id': <property object>, 'application_credential_access_rules': <property object>, 'oauth_access_token_id': <property object>, 'oauth_consumer_id': <property object>, 'audit_id': <property object>, 'audit_chain_id': <property object>, 'role_ids': <property object>, 'role_names': <property object>, 'is_admin_project': <property object>, 'oauth2_thumbprint': <property object>, 'oauth2_credential': <property object>, 'validate': <function Token.validate>, 'add_role': <function Token.add_role>, 'add_service': <function Token.add_service>, 'remove_service': <function Token.remove_service>, 'set_project_scope': <function Token.set_project_scope>, 'set_domain_scope': <function Token.set_domain_scope>, 'set_system_scope': <function Token.set_system_scope>, 'set_trust_scope': <function Token.set_trust_scope>, 'set_oauth': <function Token.set_oauth>, 'set_application_credential': <function Token.set_application_credential>, 'service_providers': <property object>, 'add_service_provider': <function Token.add_service_provider>, 'set_bind': <function Token.set_bind>, '__orig_bases__': (typing.Dict[str, typing.Any],), '__dict__': <attribute '__dict__' of 'Token' objects>, '__weakref__': <attribute '__weakref__' of 'Token' objects>, '__parameters__': (), '__annotations__': {}})
__doc__ = 'A V3 Keystone token that can be used for testing.\n\n    This object is designed to allow clients to generate a correct V3 token for\n    use in there test code. It should prevent clients from having to know the\n    correct token format and allow them to test the portions of token handling\n    that matter to them and not copy and paste sample.\n    '
__init__(expires=None, issued=None, user_id=None, user_name=None, user_domain_id=None, user_domain_name=None, methods=None, project_id=None, project_name=None, project_domain_id=None, project_domain_name=None, domain_id=None, domain_name=None, trust_id=None, trust_impersonation=None, trustee_user_id=None, trustor_user_id=None, application_credential_id=None, application_credential_access_rules=None, oauth_access_token_id=None, oauth_consumer_id=None, audit_id=None, audit_chain_id=None, is_admin_project=None, project_is_domain=None, oauth2_thumbprint=None)
__module__ = 'keystoneauth1.fixture.v3'
__orig_bases__ = (typing.Dict[str, typing.Any],)
__parameters__ = ()
__weakref__

list of weak references to the object (if defined)

property _user
property _user_domain
add_role(name=None, id=None)
add_service(type, name=None, id=None)
add_service_provider(sp_id, sp_auth_url, sp_url)
property application_credential_access_rules
property application_credential_id
property audit_chain_id
property audit_id
property domain_id
property domain_name
property expires
property expires_str
property is_admin_project
property issued
property issued_str
property methods
property oauth2_credential
property oauth2_thumbprint
property oauth_access_token_id
property oauth_consumer_id
property project_domain_id
property project_domain_name
property project_id
property project_is_domain
property project_name
remove_service(type)
property role_ids
property role_names
property root
property service_providers
set_application_credential(application_credential_id, access_rules=None)
set_bind(name, data)
set_domain_scope(id=None, name=None)
set_oauth(access_token_id=None, consumer_id=None)
set_project_scope(id=None, name=None, domain_id=None, domain_name=None, is_domain=None)
set_system_scope()
set_trust_scope(id=None, impersonation=False, trustee_user_id=None, trustor_user_id=None)
property system
property trust_id
property trust_impersonation
property trustee_user_id
property trustor_user_id
property user_domain_id
property user_domain_name
property user_id
property user_name
validate()
class keystoneauth1.fixture.v3.V3FederationToken(methods=None, identity_provider=None, protocol=None, groups=None)

Bases: Token

A V3 Keystone Federation token that can be used for testing.

Similar to V3Token, this object is designed to allow clients to generate a correct V3 federation token for use in test code.

FEDERATED_DOMAIN_ID = 'Federated'
__annotations__ = {}
__doc__ = 'A V3 Keystone Federation token that can be used for testing.\n\n    Similar to V3Token, this object is designed to allow clients to generate\n    a correct V3 federation token for use in test code.\n    '
__init__(methods=None, identity_provider=None, protocol=None, groups=None)
__module__ = 'keystoneauth1.fixture.v3'
__parameters__ = ()
add_federation_info_to_user(identity_provider=None, protocol=None, groups=None)
class keystoneauth1.fixture.v3._Service

Bases: Dict[str, Any]

One of the services that exist in the catalog.

You use this by adding a service to a token which returns an instance of this object and then you can add_endpoints to the service.

__annotations__ = {}
__dict__ = mappingproxy({'__module__': 'keystoneauth1.fixture.v3', '__doc__': 'One of the services that exist in the catalog.\n\n    You use this by adding a service to a token which returns an instance of\n    this object and then you can add_endpoints to the service.\n    ', 'add_endpoint': <function _Service.add_endpoint>, 'add_standard_endpoints': <function _Service.add_standard_endpoints>, '__orig_bases__': (typing.Dict[str, typing.Any],), '__dict__': <attribute '__dict__' of '_Service' objects>, '__weakref__': <attribute '__weakref__' of '_Service' objects>, '__parameters__': (), '__annotations__': {}})
__doc__ = 'One of the services that exist in the catalog.\n\n    You use this by adding a service to a token which returns an instance of\n    this object and then you can add_endpoints to the service.\n    '
__module__ = 'keystoneauth1.fixture.v3'
__orig_bases__ = (typing.Dict[str, typing.Any],)
__parameters__ = ()
__weakref__

list of weak references to the object (if defined)

add_endpoint(interface, url, region=None, id=None)
add_standard_endpoints(public=None, admin=None, internal=None, region=None)