Roundup Tracker - Issues

Issue 958772

classification
PostgreSQL database creation test broken
Type: Severity: normal
Components: Installation Versions:
process
Status: closed fixed
:
: richard : richard
Priority: normal :

Created on 2004-05-23 02:48 by anonymous, last changed 2004-05-23 09:42 by richard.

Messages
msg1265 Author: [hidden] (anonymous) Date: 2004-05-23 02:48
The test test.test_postgresql.postgresqlClassicInitTest 
fails if the database requires username and password for 
logging into. Apparently it uses dbinit.py from the 
standard templates to do the initialization and this fails 
because they use their own, non-localized configuration 
files, which don't include the username/password 
specified in test_postgresql.py.
msg1266 Author: [hidden] (anonymous) Date: 2004-05-23 03:29
Logged In: NO 

The bug is easily corrected by replacing the line 
extra_config = "POSTGRESQL_DATABASE = {'database': 
'rounduptest'}"

with the line

extra_config = "POSTGRESQL_DATABASE = " + repr(config.
POSTGRESQL_DATABASE)

The latter config file needs to get the same attention from the 
user as the first line in the file for the test to work properly, 
it's easiest to just reuse the first line.
msg1267 Author: [hidden] (richard) Date: 2004-05-23 09:42
Logged In: YES 
user_id=6405

I've made the change in CVS. 
History
Date User Action Args
2004-05-23 02:48:05anonymouscreate