# 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.

  __annotate_func__ = None
  __annotations_cache__ = {}
  __dict__ = mappingproxy({'__module__': 'keystoneauth1.fixture.v3', '__firstlineno__': 54, '__doc__': 'A V3 Keystone token that can be used for testing.\n\nThis object is designed to allow clients to generate a correct V3 token for\nuse in there test code. It should prevent clients from having to know the\ncorrect token format and allow them to test the portions of token handling\nthat 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>, '__static_attributes__': ('application_credential_access_rules', 'application_credential_id', 'audit_chain_id', 'audit_id', 'domain_id', 'domain_name', 'expires', 'expires_str', 'is_admin_project', 'issued', 'issued_str', 'oauth2_thumbprint', 'oauth_access_token_id', 'oauth_consumer_id', 'project_domain_id', 'project_domain_name', 'project_id', 'project_is_domain', 'project_name', 'system', 'trust_id', 'trust_impersonation', 'trustee_user_id', 'trustor_user_id', 'user_domain_id', 'user_domain_name', 'user_id', 'user_name'), '__orig_bases__': (dict[str, typing.Any],), '__dict__': <attribute '__dict__' of 'Token' objects>, '__weakref__': <attribute '__weakref__' of 'Token' objects>, '__annotations_cache__': {}})
  __doc__ = 'A V3 Keystone token that can be used for testing.\n\nThis object is designed to allow clients to generate a correct V3 token for\nuse in there test code. It should prevent clients from having to know the\ncorrect token format and allow them to test the portions of token handling\nthat matter to them and not copy and paste sample.\n'
  __firstlineno__ = 54
  __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__ = (dict[str, typing.Any],)
  __static_attributes__ = ('application_credential_access_rules', 'application_credential_id', 'audit_chain_id', 'audit_id', 'domain_id', 'domain_name', 'expires', 'expires_str', 'is_admin_project', 'issued', 'issued_str', 'oauth2_thumbprint', 'oauth_access_token_id', 'oauth_consumer_id', 'project_domain_id', 'project_domain_name', 'project_id', 'project_is_domain', 'project_name', 'system', 'trust_id', 'trust_impersonation', 'trustee_user_id', 'trustor_user_id', 'user_domain_id', 'user_domain_name', 'user_id', 'user_name')
  __weakref__

    list of weak references to the object

  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_cache__ = {}
  __doc__ = 'A V3 Keystone Federation token that can be used for testing.\n\nSimilar to V3Token, this object is designed to allow clients to generate\na correct V3 federation token for use in test code.\n'
  __firstlineno__ = 561
  __init__(methods=None, identity_provider=None, protocol=None, groups=None)
  __module__ = 'keystoneauth1.fixture.v3'
  __static_attributes__ = ('_user_domain',)
  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.

  __dict__ = mappingproxy({'__module__': 'keystoneauth1.fixture.v3', '__firstlineno__': 21, '__doc__': 'One of the services that exist in the catalog.\n\nYou use this by adding a service to a token which returns an instance of\nthis 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>, '__static_attributes__': (), '__orig_bases__': (dict[str, typing.Any],), '__dict__': <attribute '__dict__' of '_Service' objects>, '__weakref__': <attribute '__weakref__' of '_Service' objects>, '__annotations_cache__': {}})
  __doc__ = 'One of the services that exist in the catalog.\n\nYou use this by adding a service to a token which returns an instance of\nthis object and then you can add_endpoints to the service.\n'
  __firstlineno__ = 21
  __module__ = 'keystoneauth1.fixture.v3'
  __orig_bases__ = (dict[str, typing.Any],)
  __static_attributes__ = ()
  __weakref__

    list of weak references to the object

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

this page last updated: 2026-03-25 21:01:07

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug