Bases: fixtures.fixture.Fixture
Overrides what keystonemiddleware will return to the app behind it.
Add an existing token to the middleware.
token_data (dict) – token data to add to the fixture
token_id (str) – the token ID to add this token as
The token_id that the token was added as.
str
Add token data to the auth_token fixture.
Low level replacement of fetch_token for AuthProtocol.
Prepare the Fixture for use.
This should not be overridden. Concrete fixtures should implement _setUp. Overriding of setUp is still supported, just not recommended.
After setUp has completed, the fixture will have one or more attributes which can be used (these depend totally on the concrete subclass).
MultipleExceptions if _setUp fails. The last exception captured within the MultipleExceptions will be a SetupError exception.
None.
The recommendation to override setUp has been reversed - before 1.3, setUp() should be overridden, now it should not be.
BaseException is now caught, and only subclasses of Exception are wrapped in MultipleExceptions.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.