def __init__(self, options, is_service_operation=None): self.options = options self.identity_service = service.IdentityService(options) self.is_service_operation = is_service_operation logger.debug("Initializing: 'Service API' mode=%s" % self.is_service_operation)
def setUp(self): self.stubout = stubout.StubOutForTesting() self.identity = service.IdentityService() # The downside of python "private" methods ... you # have to do stuff like this to stub them out. self.stubout.SmartSet(self.identity, "_IdentityService__validate_admin_token", self._noop_validate_admin_token)
def __init__(self): self.identity_service = service.IdentityService()
def __init__(self, options): self.options = options self.identity_service = service.IdentityService(options)
def __init__(self, options): self.options = options self.identity_service = service.IdentityService(options) logger.debug("Token controller init with HP-IDM extension: %s" % \ extension_reader.is_extension_supported(self.options, 'hpidm'))