diff options
author | Simo Sorce <simo@redhat.com> | 2014-11-10 14:57:53 -0500 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-11-12 23:46:52 +0100 |
commit | 5e0b9747121eab67c5a3ee3bb42a677e35da7fd6 (patch) | |
tree | c93728a60d98385637c9dc82f05fa46fdf858e8f /tests | |
parent | 0087ad1e0824b4b1c49ce1468bfbb2e492ac7992 (diff) | |
download | ipsilon-5e0b9747121eab67c5a3ee3bb42a677e35da7fd6.tar.gz ipsilon-5e0b9747121eab67c5a3ee3bb42a677e35da7fd6.tar.xz ipsilon-5e0b9747121eab67c5a3ee3bb42a677e35da7fd6.zip |
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 <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/helpers/common.py | 2 | ||||
-rwxr-xr-x | tests/pgdb.py | 2 |
2 files changed, 3 insertions, 1 deletions
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}', |