From 5e0b9747121eab67c5a3ee3bb42a677e35da7fd6 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 10 Nov 2014 14:57:53 -0500 Subject: Add simple SqlSession implementation This allows us to store session data in the DB. This way session data can be shared by multiple servers behind a balancer. Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- tests/helpers/common.py | 2 +- tests/pgdb.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/helpers/common.py b/tests/helpers/common.py index a0adfae..e316718 100755 --- a/tests/helpers/common.py +++ b/tests/helpers/common.py @@ -138,7 +138,7 @@ class IpsilonTestBase(object): env=env, preexec_fn=os.setsid) self.processes.append(p) p.wait() - for d in ['adminconfig', 'userprefs', 'transactions']: + for d in ['adminconfig', 'userprefs', 'transactions', 'sessions']: cmd = ['/usr/bin/createdb', '-h', addr, '-p', port, d] subprocess.check_call(cmd, env=env) diff --git a/tests/pgdb.py b/tests/pgdb.py index 12f1cf2..14ffd36 100755 --- a/tests/pgdb.py +++ b/tests/pgdb.py @@ -37,6 +37,8 @@ idp_g = {'TEMPLATES': '${TESTDIR}/templates/install', idp_a = {'hostname': '${ADDRESS}:${PORT}', 'database_url': 'postgresql://@127.0.0.10:45432/%(dbname)s', + 'session_type': 'sql', + 'session_dburi': 'postgresql://@127.0.0.10:45432/sessions', 'admin_user': '${TEST_USER}', 'system_user': '${TEST_USER}', 'instance': '${NAME}', -- cgit