broken tests - test backend configuration
Hi, I was trying to run the tests and I've got some consistent failures from the test backend. It seems like the config template hasn't been loaded during the test, causing problems with ACLs.
Fails
test_config_cycle nose.proxy.AssertionError: 'Done' not found in 'You cannot administer the bot from this user gbin@localhost.'
test_load_reload_and_unload nose.proxy.AssertionError: 'Please tell me which of the following plugins to reload' not found in 'You cannot administer the bot from this user gbin@localhost.'
test_plugin_cycle nose.proxy.AssertionError: 'err-helloworld' not found in 'You cannot administer the bot from this user gbin@localhost.'
test_unblacklist_and_blacklist nose.proxy.AssertionError: "nosuchplugin isn't a valid plugin name. The current plugins are" not found in 'You cannot administer the bot from this user gbin@localhost.'
Env
Err branch 2.0.0 Python 3.3.2
Jinja2==2.7.2 MarkupSafe==0.18 WebOb==1.3.1 WebTest==2.0.14 Yapsy==1.10.223 beautifulsoup4==4.3.2 bottle==0.11.6 config==0.3.9 distribute==0.7.3 dnspython3==1.11.1 nose==1.3.0 pyasn1==0.1.7 pyasn1-modules==0.0.5 requests==2.2.1 six==1.5.2 waitress==0.8.8
OS: Mac OS X 10.9.1
How are you running the tests? Via run_tests.py or by invoking nosetests directly?
With run_tests.py. By running nosetests directly it breaks on rocket/socket pretty badly. I will read through the output of nosetests if I can find something similar. In production the ACL is working.
Here is nosetests result on the same environment, without webhooks.
https://gist.github.com/apophys/8770415
Now I tried to run the tests on linux (RHEL 6.5, both master and 2.0.0 branches) and this issue seems to be related either to OS X or something in my environment.
Keep us posted if you find what is different under osx, thx !
The tests are passing. Some of the problems were caused by missing config.py file, which is my mistake.
Though pushMessage("!config Webserver {'HOST': 'localhost', 'PORT': 3141, 'SSL': None}") in test_config_cycle causes the exceptions in the gist I sent earlier. At the moment I don't know why it happens and why it didn't happen on linux (RHEL and Debian).
For now I think I cannot do anything about this issue. However, it is interesting that the thread causing this output is not managed/silenced by nose.
Definitely not a bug in err, though. Closing the issue.