keystoneauth1.fixture.v2 module¶
-
class
keystoneauth1.fixture.v2.
Token
(token_id=None, expires=None, issued=None, tenant_id=None, tenant_name=None, user_id=None, user_name=None, trust_id=None, trustee_user_id=None, audit_id=None, audit_chain_id=None)¶ Bases:
dict
A V2 Keystone token that can be used for testing.
This object is designed to allow clients to generate a correct V2 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.
-
add_role
(name=None, id=None)¶
-
add_service
(type, name=None)¶
-
audit_chain_id
¶
-
audit_id
¶
-
expires
¶
-
expires_str
¶
-
issued
¶
-
issued_str
¶
-
remove_service
(type)¶
-
root
¶
-
set_bind
(name, data)¶
-
set_scope
(id=None, name=None)¶
-
set_trust
(id=None, trustee_user_id=None)¶
-
tenant_id
¶
-
tenant_name
¶
-
token_id
¶
-
trust_id
¶
-
trustee_user_id
¶
-
user_id
¶
-
user_name
¶
-
validate
()¶
-