Example #1
0
    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)
Example #2
0
        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)
Example #3
0
 def __init__(self):
     self.identity_service = service.IdentityService()
Example #4
0
 def __init__(self, options):
     self.options = options
     self.identity_service = service.IdentityService(options)
Example #5
0
 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'))