Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#1216 closed defect (fixed)

possible problem with runtests and database creation - some setups miss creation rights for users

Reported by: hugo Owned by: Jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There might be a problem with the unit tests in some situations: the database creation depends on the user to have the rights to do it. It might be useful to have a short part talk about using SQLite for those situations, because that won't need those rights. And maybe the code could be made to accept an optional database name from the command line, so the user can explicitely give a database name for testing (of an already existing and empty database).

Typical setups where this is a problem are PostgreSQL on Debian systems: users can be created with or without the right to create databases or the config might prevent access of users to databases that are named differently (the default setup of PostgreSQL does that on Debian if you access over unix sockets).

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

(In [2846]) Fixed #1216 -- Noted in docs/contributing.txt 'Unit tests' section that the user needs permission to create a database

comment:2 by James Bennett, 19 years ago

Just double-checked, and still seeing it in Firefox on the Mac with an SVN checkout from a couple days ago.

Note: See TracTickets for help on using tickets.
Back to Top