l.t.s.f.FakeKeystone(resource.Resource) : class documentation

Part of lp.testing.swift.fakeswift View In Hierarchy

A fake Keystone API endpoint.
Method __init__ Undocumented
Method getUser Get information about a specific user.
Method getValidToken Get a valid token for the given tenant name.
Method ensureValidToken Ensure a valid token is created if one doesn't exist.
Method validateToken Validate token from request against valid tokens.
Method getChild See twisted.web.resource.Resource.getChild.
Method render_POST Validate provided credentials and return service catalog.
Method _isValidToken Validate a given token for expiration.
def __init__(self, root, allow_default_access=True):
Undocumented
def getUser(self, username):
Get information about a specific user.
def _isValidToken(self, token, tenant_name):
Validate a given token for expiration.
def getValidToken(self, tenant_name, expected_token=None):
Get a valid token for the given tenant name.
def ensureValidToken(self, tenant_name):
Ensure a valid token is created if one doesn't exist.
def validateToken(self, request, tenant_name):
Validate token from request against valid tokens.
def getChild(self, path, request):
See twisted.web.resource.Resource.getChild.
def render_POST(self, request):
Validate provided credentials and return service catalog.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.