forked from getsentry/sentry-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conftest.py
68 lines (59 loc) · 2.83 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from __future__ import absolute_import
from django.conf import settings
import os
import sys
# Run tests against sqlite for simplicity
os.environ.setdefault('DB', 'sqlite')
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
pytest_plugins = ['sentry.utils.pytest']
def pytest_configure(config):
settings.INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
'sentry_plugins.amazon_sqs', 'sentry_plugins.asana', 'sentry_plugins.bitbucket',
'sentry_plugins.heroku', 'sentry_plugins.hipchat_ac', 'sentry_plugins.github',
'sentry_plugins.gitlab', 'sentry_plugins.pagerduty', 'sentry_plugins.pivotal',
'sentry_plugins.pushover', 'sentry_plugins.jira', 'sentry_plugins.segment',
'sentry_plugins.sessionstack', 'sentry_plugins.slack', 'sentry_plugins.victorops',
)
# TODO(dcramer): we need a PluginAPITestCase that can do register/unregister
from sentry.plugins import plugins
from sentry_plugins.amazon_sqs.plugin import AmazonSQSPlugin
from sentry_plugins.asana.plugin import AsanaPlugin
from sentry_plugins.bitbucket.plugin import BitbucketPlugin
from sentry_plugins.github.plugin import GitHubPlugin
from sentry_plugins.gitlab.plugin import GitLabPlugin
from sentry_plugins.heroku.plugin import HerokuPlugin
from sentry_plugins.hipchat_ac.plugin import HipchatPlugin
from sentry_plugins.jira.plugin import JiraPlugin
from sentry_plugins.pagerduty.plugin import PagerDutyPlugin
from sentry_plugins.pivotal.plugin import PivotalPlugin
from sentry_plugins.pushover.plugin import PushoverPlugin
from sentry_plugins.segment.plugin import SegmentPlugin
from sentry_plugins.sessionstack.plugin import SessionStackPlugin
from sentry_plugins.slack.plugin import SlackPlugin
from sentry_plugins.victorops.plugin import VictorOpsPlugin
plugins.register(AmazonSQSPlugin)
plugins.register(AsanaPlugin)
plugins.register(BitbucketPlugin)
plugins.register(GitHubPlugin)
plugins.register(GitLabPlugin)
plugins.register(HerokuPlugin)
plugins.register(HipchatPlugin)
plugins.register(JiraPlugin)
plugins.register(PagerDutyPlugin)
plugins.register(PivotalPlugin)
plugins.register(PushoverPlugin)
plugins.register(SegmentPlugin)
plugins.register(SessionStackPlugin)
plugins.register(SlackPlugin)
plugins.register(VictorOpsPlugin)
settings.ASANA_CLIENT_ID = 'abc'
settings.ASANA_CLIENT_SECRET = '123'
settings.BITBUCKET_CONSUMER_KEY = 'abc'
settings.BITBUCKET_CONSUMER_SECRET = '123'
settings.GITHUB_APP_ID = 'abc'
settings.GITHUB_API_SECRET = '123'
settings.GITHUB_APPS_APP_ID = 'abc'
settings.GITHUB_APPS_API_SECRET = '123'
# this isn't the real secret
settings.SENTRY_OPTIONS['github.integration-hook-secret'
] = 'b3002c3e321d4b7880360d397db2ccfd'