Commit Graph

51 Commits

Author SHA1 Message Date
David Cramer 5586e865f2 Update tests to reflect current behavior 2013-01-21 16:10:51 -08:00
Roland van Laar c5d2d16d90 Fix client.py to return the site name.
If the site name is not defined the domain name is returned.
2013-01-09 22:41:31 +01:00
David Cramer 678c96dd2a Remove site from top-level and automatically add it to tags when present 2013-01-09 12:03:45 -08:00
David Cramer 3a72752765 Change culprits to be 'module in function' (fixes GH-235) 2013-01-02 16:45:13 -08:00
David Cramer fcc34abbe0 Support SENTRY_IGNORE_EXCEPTIONS in Django as a solution for the removed skip_sentry behavior 2012-12-26 13:45:27 -08:00
David Cramer afbde25e28 Add basic tests for sentry_exception_handler 2012-12-26 13:40:24 -08:00
David Cramer 50e44def5f Remove support for skip_sentry (code was already removed) 2012-12-26 12:32:27 -08:00
David Cramer cbccfebf28 Use py.test assertions 2012-12-26 12:31:08 -08:00
David Cramer c9659a3c91 Correct test for django in_app frames 2012-12-13 13:14:52 -08:00
David Cramer ae307b251a Mark Django frames as outside of the application 2012-12-11 21:40:40 -08:00
David Cramer 4abfb8bdec Merge branch 'master' into pytest
Conflicts:
	raven/handlers/logging.py
	runtests.py
	tests/contrib/django/tests.py
2012-12-07 21:41:14 -08:00
David Cramer dd0677b58e Clean up logging tests and behavior to be more precise 2012-12-07 21:36:26 -08:00
David Cramer b09d4bf882 Clean up logging tests and behavior to be more precise 2012-12-07 21:29:44 -08:00
David Cramer 8c1ede69b3 Handle serializing promises to some extent in Django 1.4 2012-09-03 16:10:23 -07:00
David Cramer 604b578f0f **really** dont require sentry for tests 2012-09-03 15:55:18 -07:00
David Cramer b7f4ac2019 Remove sentry requirement from tests, add Django 1.4.1 to matrix 2012-09-03 15:44:55 -07:00
Jaap Roes 58771c0ccb Test pass on Python 2.5 (skipping zerorpc and wsgi middleware (webobj) tests) 2012-08-06 15:04:43 +02:00
David Cramer 30ee1fb7b8 Move gettext lazy test into the Promise tests 2012-07-24 13:42:41 -07:00
David Cramer 17ad5b5352 Correct Celery tests 2012-07-24 13:39:50 -07:00
David Cramer bba51b29ad Add basic queryset serialization to ensure we dont execute queries 2012-07-05 11:51:58 +02:00
David Cramer d04c60178a Allow proxying of auth_header in Client.send and django's raven-report view 2012-05-29 13:21:26 -07:00
David Cramer fb0c81f231 SENTRY_ALLOW_ORIGIN must now either be * or a list of strings or regular expressions 2012-05-22 17:04:12 -07:00
David Cramer 75a0afccce Add a report endpoint within Raven for internally hosted Sentry apps (to allow for external communication) 2012-05-16 17:17:21 -07:00
Luper Rouch 874486dfd0 added a test to demonstrate exceptions filtering with a middleware 2012-05-12 13:10:24 +02:00
David Cramer 69c5fa6338 Support for Celery signal handling
This does several things:

1. It removes the use of get_client() throughout the codebase (Django)
   and replaces it with a new proxy object.

2. Adds register_signal(client) to raven.contrib.celery

3. Automatically registers the Celery signal if djcelery and raven.contrib.django
   are installed.
2012-05-01 14:41:06 -07:00
David Cramer 2aa5b33cce Skip response middleware error test if < Django 1.3 2012-03-04 00:23:37 -08:00
David Cramer 0581e91732 Correct version check 2012-02-27 19:40:53 -08:00
David Cramer 7de9b430a4 Remove 1.3+ tests automatically 2012-02-27 19:37:24 -08:00
David Cramer 4690be506d Update test to match current behavior 2012-02-13 14:04:06 -08:00
David Cramer 8b180369b7 Change Celery to use mixins and correct Django behavior when using the integrated setup 2012-01-31 18:06:20 -08:00
David Cramer 2ff14a94d7 Test Client.send behavior 2012-01-31 16:18:06 -08:00
David Cramer 5a182161e3 Correctly handle (and test) request in Django logging handler 2012-01-25 12:32:59 -08:00
David Cramer 0b0224d06f Change env to split between whitelisted env variables and actual HTTP headers 2011-12-26 14:33:04 -08:00
David Cramer 83386e2e6b Add support for headers to the Http interface in Flask and Django 2011-12-23 23:24:58 -08:00
David Cramer 97550b0737 Merge branch 'master' into 2.0
Conflicts:
	raven/base.py
	raven/contrib/django/__init__.py
2011-10-27 15:15:17 -07:00
David Cramer 2deff9bae5 Some initial work on celery (Django integration likely still doesnt work outside of tests) 2011-10-25 18:23:23 -07:00
David Cramer 2d55add71f Ensure we gracefully handle partial reads with request.POST (fixes GH-25) 2011-10-24 12:48:03 -07:00
David Cramer 106d0cc493 Update integration tests to match Sentry web 2.0 2011-10-23 13:49:21 -07:00
David Cramer 9048ba6dff Cleanup various event handlers.
- Refactor hash handling to work as expected.
- Data is now flat with everything else.
- Logging record handling is now more implicit and tied to the logging handler.
- Handle HTTP interface in Django.
2011-10-20 22:49:19 -07:00
David Cramer 9a4ee1c710 Added a Django specific WSGI middleware to automatically pull in the correct client 2011-10-18 15:33:18 -07:00
David Cramer 54646da3b0 More test coverage, including applying WSGI middleware to Django for errors in handler500 2011-10-18 15:26:16 -07:00
David Cramer b4268f6cbd Allow specifying a temporary, and arbitrary client to instantiate in Django's get_client() 2011-10-11 15:02:52 -07:00
David Cramer 5b784cd2e3 Eliminate global settings module (routing_key for celery integration is now 'sentry') 2011-10-10 14:57:41 -07:00
David Cramer d03b1e710e Refactored Django settings and the logging integration, as well as a few minor fixes 2011-10-10 14:54:18 -07:00
David Cramer bdeb153698 Initial working flask app. Fixed some more sentry_client names (throughout the test suite). 2011-10-07 14:33:14 -04:00
David Cramer 4916e9a811 Moved all settings into the client itself (and the initializer) 2011-10-07 13:47:12 -04:00
David Cramer 59dbe6c7fa Rename SentryClient to Client 2011-10-07 13:11:53 -04:00
David Cramer 25757aca92 Lintin 2011-10-07 12:31:11 -04:00
David Cramer bf731f6899 Brought the rest of the Django client tests up to passing 2011-10-07 12:12:54 -04:00
David Cramer 16854905e7 Move test bootstrap into runtests.py to ensure databases are configured correctly for django tests 2011-10-07 11:30:42 -04:00