summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2015-03-30 16:38:10 +0200
committerRob Crittenden <rcritten@redhat.com>2015-03-30 14:20:11 -0400
commit3fd51fe0d4593cdc39c28f11deafe27845f25584 (patch)
treeba17bf07693aa8fd3c09863ce21b2445f7e6400d /tests
parentdb41f6ea5ac2b4648350900791e32a83d0974e14 (diff)
downloadipsilon-3fd51fe0d4593cdc39c28f11deafe27845f25584.tar.gz
ipsilon-3fd51fe0d4593cdc39c28f11deafe27845f25584.tar.xz
ipsilon-3fd51fe0d4593cdc39c28f11deafe27845f25584.zip
Add options to explicitly set database uris during install
Also offer the option to set the OpenID database URI during install https://fedorahosted.org/ipsilon/ticket/17 Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> Reviewed-by: Rob Crittenden <rcritten@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/helpers/common.py2
-rwxr-xr-xtests/pgdb.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/helpers/common.py b/tests/helpers/common.py
index f3799c4..4cf27f9 100755
--- a/tests/helpers/common.py
+++ b/tests/helpers/common.py
@@ -143,7 +143,7 @@ class IpsilonTestBase(object):
env=env, preexec_fn=os.setsid)
self.processes.append(p)
p.wait()
- for d in ['adminconfig', 'userprefs', 'transactions', 'sessions']:
+ for d in ['adminconfig', 'users', '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 14ffd36..a738052 100755
--- a/tests/pgdb.py
+++ b/tests/pgdb.py
@@ -36,6 +36,7 @@ idp_g = {'TEMPLATES': '${TESTDIR}/templates/install',
idp_a = {'hostname': '${ADDRESS}:${PORT}',
+ 'users_dburi': 'postgresql://@127.0.0.10:45432/users',
'database_url': 'postgresql://@127.0.0.10:45432/%(dbname)s',
'session_type': 'sql',
'session_dburi': 'postgresql://@127.0.0.10:45432/sessions',