Bases: dict
A List of version elements.
Creates a correctly structured list of identity service endpoints for use in testing with discovery.
Parameters: |
|
---|
Add a v2 version to the list.
The parameters are the same as V2Discovery.
Add a v3 version to the list.
The parameters are the same as V3Discovery.
Add a new version structure to the list.
Parameters: | version (dict) – A new version structure to add to the list. |
---|
Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for a V2 identity service endpoint.
Provides some default values and helper methods for creating a v2.0 endpoint version structure. Clients should use this instead of creating their own structures.
Parameters: |
---|
Add the HTML described by links.
The standard structure includes a link to a HTML document with the API specification. Add it to this entry.
Add the PDF described by links.
The standard structure includes a link to a PDF document with the API specification. Add it to this entry.
Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for a V3 identity service endpoint.
Provides some default values and helper methods for creating a v3 endpoint version structure. Clients should use this instead of creating their own structures.
Parameters: |
---|
Add the JSON media-type links.
The standard structure includes a list of media-types that the endpoint supports. Add JSON to the list.
Add the XML media-type links.
The standard structure includes a list of media-types that the endpoint supports. Add XML to the list.
Bases: exceptions.Exception
The token you created is not legitimate.
The data contained in the token that was generated is not valid and would not have been returned from a keystone server. You should not do testing with this token.
A fixture to wrap the session constructor for use with Betamax
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.
Bases: dict
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.
Bases: keystoneauth1.fixture.v3.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.
The generators in this directory produce keystone compliant structures for use in testing.
They should be considered part of the public API because they may be relied upon to generate test tokens for other clients. However they should never be imported into the main client (keystonauth or other). Because of this there may be dependencies from this module on libraries that are only available in testing.
Bases: dict
A List of version elements.
Creates a correctly structured list of identity service endpoints for use in testing with discovery.
Parameters: |
|
---|
Add a v2 version to the list.
The parameters are the same as V2Discovery.
Add a v3 version to the list.
The parameters are the same as V3Discovery.
Add a new version structure to the list.
Parameters: | version (dict) – A new version structure to add to the list. |
---|
Bases: exceptions.Exception
The token you created is not legitimate.
The data contained in the token that was generated is not valid and would not have been returned from a keystone server. You should not do testing with this token.
Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for a V2 identity service endpoint.
Provides some default values and helper methods for creating a v2.0 endpoint version structure. Clients should use this instead of creating their own structures.
Parameters: |
---|
Add the HTML described by links.
The standard structure includes a link to a HTML document with the API specification. Add it to this entry.
Add the PDF described by links.
The standard structure includes a link to a PDF document with the API specification. Add it to this entry.
Bases: keystoneauth1.fixture.discovery.DiscoveryBase
A Version element for a V3 identity service endpoint.
Provides some default values and helper methods for creating a v3 endpoint version structure. Clients should use this instead of creating their own structures.
Parameters: |
---|
Add the JSON media-type links.
The standard structure includes a list of media-types that the endpoint supports. Add JSON to the list.
Add the XML media-type links.
The standard structure includes a list of media-types that the endpoint supports. Add XML to the list.
alias of Token
alias of Token
Bases: keystoneauth1.fixture.v3.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.