From 0087ad1e0824b4b1c49ce1468bfbb2e492ac7992 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 29 Oct 2014 10:22:36 -0400 Subject: Add test to check a real database (pgsql) works Change config template to e able to set up ipsilon with an extrenal database. For the easy install the database server must have 3 datbases configured, and named exactly: admincondif, userprefs, transactions If different names are required manual instalation will be necessary. Database URLs (including credentials) can be set using the new option named --database-url Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- quickrun.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'quickrun.py') diff --git a/quickrun.py b/quickrun.py index 60b3899..852f8b0 100755 --- a/quickrun.py +++ b/quickrun.py @@ -65,6 +65,8 @@ def config(workdir): f.write(USERS_TEMPLATE) subprocess.call(['sqlite3', '-init', sql, users_db, '.quit']) + trans_db = os.path.join(workdir, 'transactions.sqlite') + with open(CONF_TEMPLATE) as f: conf_template = f.read() t = Template(conf_template) @@ -72,6 +74,9 @@ def config(workdir): 'instance': 'idp', 'staticdir': os.getcwd(), 'datadir': workdir, + 'admindb': admin_db, + 'usersdb': users_db, + 'transdb': trans_db, 'secure': 'False'}) conf = os.path.join(workdir, 'ipsilon.conf') with open(conf, 'w+') as f: -- cgit