Hi,

I have installed Allura as described here
http://sourceforge.net/p/allura/git/ci/master/tree/README.markdown.
I have written a new tool for Allura and I want to write some tests.
The problem is that the Allura tests fail (ALLURA_VALIDATION=none
./run_tests) and if I run "python setup.py nosetests" for a tool such as
ForgeTracker, tests fail as well.
The test.log does not contain any error messages. In console I have
messages like:
...

======================================================================
ERROR: test suite for <module 'forgetracker.tests.test_tracker_roles'
from '/root/src/allura/ForgeTracker/forgetracker/tests/test_tracker_roles.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/anvil/local/lib/python2.7/site-packages/nose/suite.py",
line 208, in run
    self.setUp()
  File "/root/anvil/local/lib/python2.7/site-packages/nose/suite.py",
line 291, in setUp
    self.setupContext(ancestor)
  File "/root/anvil/local/lib/python2.7/site-packages/nose/suite.py",
line 314, in setupContext
    try_run(context, names)
  File "/root/anvil/local/lib/python2.7/site-packages/nose/util.py",
line 478, in try_run
    return func()
  File "/root/src/allura/ForgeTracker/forgetracker/tests/test_tracker_roles.py",
line 26, in setUp
    setup_basic_test()
  File "/root/src/allura/AlluraTesting/alluratest/controller.py", line
66, in setup_basic_test
    cmd.run([test_file])
  File 
"/root/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py",
line 68, in run
    return super(AbstractInstallCommand, self).run(new_args)
  File "/root/anvil/local/lib/python2.7/site-packages/paste/script/command.py",
line 238, in run
    result = self.command()
  File 
"/root/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py",
line 456, in command
    self, config_file, section, self.sysconfig_install_vars(installer))
  File 
"/root/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py",
line 598, in setup_config
    mod.setup_app, command, filename, section, vars)
  File 
"/root/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py",
line 614, in _call_setup_app
    func(command, conf, vars)
  File "/root/src/allura/Allura/allura/websetup/__init__.py", line 37,
in setup_app
    bootstrap.bootstrap(command, conf, vars)
  File "/root/src/allura/Allura/allura/websetup/bootstrap.py", line
166, in bootstrap
    p_adobe1 = n_adobe.register_project('adobe-1', u_admin)
  File "/root/src/allura/Allura/allura/model/neighborhood.py", line
121, in register_project
    self, shortname, project_name, user or getattr(c, 'user', None),
user_project, private_project, apps)
  File "/root/src/allura/Allura/allura/lib/plugin.py", line 441, in
register_project
    return self._create_project(neighborhood, shortname, project_name,
user, user_project, private_project, apps)
  File "/root/src/allura/Allura/allura/lib/plugin.py", line 500, in
_create_project
    apps=apps or [] if 'tools' in project_template else None)
  File "/root/src/allura/Allura/allura/model/project.py", line 764, in
configure_project
    self.install_app(ep_name, mount_point, label, ordinal=i)
  File "/root/src/allura/Allura/allura/model/project.py", line 555, in
install_app
    App = g.entry_points['tool'][ep_name]
  File "/root/src/allura/Allura/allura/lib/utils.py", line 365, in __getitem__
    return self.store[self.__keytransform__(key)]
KeyError: 'activity'

----------------------------------------------------------------------
Ran 105 tests in 34.943s

FAILED (errors=108)



What could be the problem? How can I make these tests pass?

Thanks.

Edit

Reply via email to