Commit c254f2e7 authored by Nicolas Delaby's avatar Nicolas Delaby

Use _getPersistentMemcachedServerDict in order to configure

distributed cache plugins correctly
parent 51c9f711
......@@ -32,6 +32,7 @@ import unittest
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import _getPersistentMemcachedServerDict
from Products.ERP5Type.CachePlugins.DummyCache import DummyCache
from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Type.Cache import CachingMethod
......@@ -98,9 +99,11 @@ class TestCacheTool(ERP5TypeTestCase):
portal_memcached = self.getPortal().portal_memcached
memcached_plugin_id = 'flare'
if getattr(portal_memcached, memcached_plugin_id, None) is None:
connection_dict = _getPersistentMemcachedServerDict()
url_string = '%(hostname)s:%(port)s' % connection_dict
portal_memcached.newContent(portal_type='Memcached Plugin',
id=memcached_plugin_id,
url_string='127.0.0.1:12121',
url_string=url_string,
server_max_key_length=0,
server_max_value_length=0,
priority=1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment