From 3fd51fe0d4593cdc39c28f11deafe27845f25584 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 30 Mar 2015 16:38:10 +0200 Subject: 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 Reviewed-by: Rob Crittenden --- tests/helpers/common.py | 2 +- tests/pgdb.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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', -- cgit