Commit d2d55e8f authored by Łukasz Nowak's avatar Łukasz Nowak

- simplify memcached configuration and remove values from global

   dictionary


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44101 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31132de8
...@@ -57,8 +57,6 @@ CONFIG = dict( ...@@ -57,8 +57,6 @@ CONFIG = dict(
zodb_root_filename='root.fs', zodb_root_filename='root.fs',
zeo_port=22001, zeo_port=22001,
zeo_storagename='root', zeo_storagename='root',
# Memcached
memcached_port=11000,
# Kumofs # Kumofs
kumo_manager_port=13101, kumo_manager_port=13101,
kumo_server_port=13201, kumo_server_port=13201,
...@@ -100,7 +98,7 @@ class Recipe(BaseSlapRecipe): ...@@ -100,7 +98,7 @@ class Recipe(BaseSlapRecipe):
self.parameter_dict.setdefault(k, v) self.parameter_dict.setdefault(k, v)
self.installTestCertificateAuthority() self.installTestCertificateAuthority()
self.installCertificateAuthority() self.installCertificateAuthority()
self.installMemcached() self.installMemcached(ip=self.getLocalIPv4Address(), port=11000)
self.installKumo() self.installKumo()
self.installConversionServer() self.installConversionServer()
self.installMysqlServer() self.installMysqlServer()
...@@ -189,17 +187,17 @@ class Recipe(BaseSlapRecipe): ...@@ -189,17 +187,17 @@ class Recipe(BaseSlapRecipe):
kumo_gateway_port=CONFIG['kumo_gateway_port'], kumo_gateway_port=CONFIG['kumo_gateway_port'],
) )
def installMemcached(self): def installMemcached(self, ip, port):
CONFIG.update( config = dict(
memcached_binary=self.options['memcached_binary'], memcached_binary=self.options['memcached_binary'],
memcached_ip=self.getLocalIPv4Address()) memcached_ip=ip,
memcached_port=port,
)
self.path_list.append(self.createRunningWrapper('memcached', self.path_list.append(self.createRunningWrapper('memcached',
self.substituteTemplate(self.getTemplateFilename('memcached.in'), self.substituteTemplate(self.getTemplateFilename('memcached.in'),
CONFIG))) config)))
self.connection_dict.update( self.connection_dict.update(memcached_url='%s:%s' %
memcached_ip=CONFIG['memcached_ip'], (config['memcached_ip'], config['memcached_port']))
memcached_port=CONFIG['memcached_port']
)
def installTestRunner(self): def installTestRunner(self):
"""Installs bin/runTestSuite executable to run all tests using """Installs bin/runTestSuite executable to run all tests using
......
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