def setUp(self):
     super(MemcacheToken, self).setUp()
     self.load_backends()
     fake_client = MemcacheClient()
     self.token_man = token.Manager()
     self.token_man.driver = token_memcache.Token(client=fake_client)
     self.token_api = self.token_man
 def setUp(self):
     super(MemcacheTokenCacheInvalidation, self).setUp()
     CONF.token.driver = 'keystone.token.backends.memcache.Token'
     self.load_backends()
     fake_client = MemcacheClient()
     self.token_man = token.Manager()
     self.token_man.driver = token_memcache.Token(client=fake_client)
     self.token_api = self.token_man
     self.token_provider_api.driver.token_api = self.token_api
     self._create_test_data()
Пример #3
0
 def setUp(self):
     super(MemcacheToken, self).setUp()
     # Use the memcache backend for the token driver.
     self.opt_in_group('token',
                       driver='keystone.token.backends.memcache.Token')
     self.load_backends()
     # Override the memcache client with the "dummy" client.
     fake_client = MemcacheClient()
     self.token_man = token.Manager()
     self.token_man.driver = token_memcache.Token(client=fake_client)
     self.token_api = self.token_man
Пример #4
0
 def setUp(self):
     super(MemcacheToken, self).setUp()
     fake_client = MemcacheClient()
     self.token_api = token_memcache.Token(client=fake_client)