Roundup Tracker - Issues

Issue 2550617

classification
python run_tests.py fails on any version
Type: Severity: major
Components: Documentation, Installation, Command-line interface Versions: 1.4
process
Status: closed works for me
:
: schlatterbeck : radioking, schlatterbeck
Priority: :

Created on 2009-12-23 15:54 by radioking, last changed 2010-01-04 10:27 by schlatterbeck.

Messages
msg3944 Author: [hidden] (radioking) Date: 2009-12-23 15:54
Installation notes at
http://www.roundup-tracker.org/docs/installation.html

propose testing python with

python run_tests.py
or
python2 run_tests.py


I have checked out svn trunk as well as release-1-4-6, but neither test
works for me:

###################################
root@roundup:/usr/local/src/roundup/release-1-4-6# python run_tests.py 
Running unit tests at level 1

*** SOURCE WARNING: The MANIFEST file is missing!
Running unit tests from /usr/local/src/roundup/release-1-4-6/.
Including anydbm tests
Skipping Xapian indexer tests
Skipping postgresql indexer tests
Traceback (most recent call last):
  File "run_tests.py", line 889, in <module>
    process_args()
  File "run_tests.py", line 879, in process_args
    bad = main(module_filter, test_filter, libdir)
  File "run_tests.py", line 671, in main
    runner(files, test_filter, debug)
  File "run_tests.py", line 585, in runner
    s = get_suite(file)
  File "run_tests.py", line 510, in get_suite
    return suite_func()
  File "/usr/local/src/roundup/release-1-4-6/./test/test_indexer.py",
line 147, in test_suite
    if mysqlOpener.module.db_exists(config):
  File
"/usr/local/src/roundup/release-1-4-6/roundup/backends/back_mysql.py",
line 96, in db_exists
    conn = MySQLdb.connect(**kwargs)
  File "/var/lib/python-support/python2.5/MySQLdb/__init__.py", line 74,
in Connect
    return Connection(*args, **kwargs)
  File "/var/lib/python-support/python2.5/MySQLdb/connections.py", line
170, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user
'rounduptest'@'localhost' (using password: YES)")
root@roundup:/usr/local/src/roundup/release-1-4-6# python2 run_tests.py 
bash: python2: command not found
###################################


Is the documentation lacking any prerequesite step?
msg3952 Author: [hidden] (radioking) Date: 2010-01-04 08:13
This issue could be identified as 'not seeing the forest for the trees'
thanks to Ralf Schlatterbeck.

The run_tests.py needs a mysql-user to be added with the grants CREATE
and DROP (at least).

Testing works as described after adding required mysql user.



Obviously the website-documentation *indeed* lacks (at least) an
explanatory note here.

-> Opened additional issue for this:
http://issues.roundup-tracker.org/issue2550618


/resolved pls
msg3955 Author: [hidden] (schlatterbeck) Date: 2010-01-04 10:27
closing, documentation updated, see issue2550618
History
Date User Action Args
2010-01-04 10:27:19schlatterbecksetstatus: new -> closed
assignee: schlatterbeck
resolution: works for me
messages: + msg3955
2010-01-04 08:13:34radiokingsetmessages: + msg3952
2009-12-28 12:41:20schlatterbecksetnosy: + schlatterbeck
2009-12-23 15:54:59radiokingcreate