Commit 2f4957bc authored by Grégory Wisniewski's avatar Grégory Wisniewski

Forward parameters from functional test to client application.

This is mainly usefull to disable compression.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2442 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 825e6c30
...@@ -328,7 +328,7 @@ class NEOCluster(object): ...@@ -328,7 +328,7 @@ class NEOCluster(object):
def getNEOCTL(self): def getNEOCTL(self):
return self.neoctl return self.neoctl
def getZODBStorage(self): def getZODBStorage(self, **kw):
master_nodes = self.master_nodes.replace('/', ' ') master_nodes = self.master_nodes.replace('/', ' ')
result = Storage( result = Storage(
master_nodes=master_nodes, master_nodes=master_nodes,
...@@ -336,13 +336,14 @@ class NEOCluster(object): ...@@ -336,13 +336,14 @@ class NEOCluster(object):
connector='SocketConnector', connector='SocketConnector',
logfile=os.path.join(self.temp_dir, 'client.log'), logfile=os.path.join(self.temp_dir, 'client.log'),
verbose=self.verbose, verbose=self.verbose,
**kw
) )
self.zodb_storage_list.append(result) self.zodb_storage_list.append(result)
return result return result
def getZODBConnection(self): def getZODBConnection(self, **kw):
""" Return a tuple with the database and a connection """ """ Return a tuple with the database and a connection """
db = ZODB.DB(storage=self.getZODBStorage()) db = ZODB.DB(storage=self.getZODBStorage(**kw))
return (db, db.open()) return (db, db.open())
def getSQLConnection(self, db, autocommit=False): def getSQLConnection(self, db, autocommit=False):
......
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