zulip/zerver/webhooks
Steve Howell 1306239c16 tests: Use email/delivery_email more explicitly.
We try to use the correct variation of `email`
or `delivery_email`, even though in some
databases they are the same.

(To find the differences, I temporarily hacked
populate_db to use different values for email
and delivery_email, and reduced email visibility
in the zulip realm to admins only.)

In places where we want the "normal" realm
behavior of showing emails (and having `email`
be the same as `delivery_email`), we use
the new `reset_emails_in_zulip_realm` helper.

A couple random things:

    - I fixed any error messages that were leaking
      the wrong email

    - a test that claimed to rely on the order
      of emails no longer does (we sort user_ids
      instead)

    - we now use user_ids in some place where we used
      to use emails

    - for IRC mirrors I just punted and used
      `reset_emails_in_zulip_realm` in most places

    - for MIT-related tests, I didn't fix email
      vs. delivery_email unless it was obvious

I also explicitly reset the realm to a "normal"
realm for a couple tests that I frankly just didn't
have the energy to debug.  (Also, we do want some
coverage on the normal case, even though it is
"easier" for tests to pass if you mix up `email`
and `delivery_email`.)

In particular, I just reset data for the analytics
and corporate tests.
2020-03-19 16:04:03 -07:00
..
airbrake python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
alertmanager integrations: Add AlertManager webhook. 2020-02-14 17:43:15 -08:00
ansibletower webhooks/ansibletower: Update for AWX 9.1.1. 2020-02-02 20:21:03 -08:00
appfollow python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
appveyor python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
basecamp python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
beanstalk test performance: Pass in users to api_* helpers. 2020-03-11 14:18:29 -07:00
beeminder python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
bitbucket test performance: Pass in users to api_* helpers. 2020-03-11 14:18:29 -07:00
bitbucket2 python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
bitbucket3 python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
buildbot python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
circleci python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
clubhouse python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
codeship python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
crashlytics python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
delighted python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
deskdotcom test performance: Pass in users to api_* helpers. 2020-03-11 14:18:29 -07:00
dialogflow python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
dropbox python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
errbit integrations: Add errbit integration. 2020-01-16 15:33:51 -08:00
flock python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
freshdesk test performance: Pass in users to api_* helpers. 2020-03-11 14:18:29 -07:00
front python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
gci python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
gitea python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
github webhooks: Add team reviewers support in github webhook. 2020-03-10 16:29:59 -07:00
gitlab python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
gocd python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
gogs python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
gosquared python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
greenhouse python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
groove python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
harbor python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
hellosign webhooks: Fix hellosign webhook. 2020-02-12 22:36:11 -08:00
helloworld webhooks: Fix typo in test_stream_error_pm_to_bot_owner comment. 2020-01-30 12:13:54 -08:00
heroku python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
homeassistant python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
honeybadger/fixtures inetgrations: Add webhook payloads for Honeybadger. 2018-01-02 11:45:33 -05:00
ifttt python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
insping python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
intercom python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
jira python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
librato python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
mention python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
netlify python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
newrelic python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
opbeat python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
opsgenie python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
pagerduty python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
papertrail python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
pingdom python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
pivotal python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
raygun python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
reviewboard python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
rollbar/fixtures integrations: Add webhook payloads for rollbar. 2018-01-11 06:32:37 -05:00
runscope/fixtures integrations: Add webhook payloads for Runscope. 2017-12-29 07:27:20 -05:00
semaphore python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
sentry python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
slack python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
solano python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
splunk python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
stash/fixtures webhooks: Rename webhook fixtures to only include event type. 2017-05-13 20:07:40 -02:30
statuspage python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
stripe python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
taiga integrations: Improved Taiga Integration. 2020-03-04 16:52:52 -08:00
teamcity python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
transifex python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
travis python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
trello python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
updown python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
wordpress python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
yo tests: Use email/delivery_email more explicitly. 2020-03-19 16:04:03 -07:00
zabbix python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
zapier python: Sort webhooks imports with isort. 2020-01-14 13:07:47 -08:00
zendesk test performance: Pass in users to api_* helpers. 2020-03-11 14:18:29 -07:00
__init__.py