Tim Abbott
7581e0e1c5
settings: Remove remaining references to REALMS_HAVE_SUBDOMAINS.
2017-10-02 16:43:54 -07:00
Tim Abbott
651b1882e6
test_outgoing_webhook_system: Set REALMS_HAVE_SUBDOMAINS=True.
2017-10-01 22:47:15 -07:00
Robert Hönig
9d4bffb59d
outgoing webhook: Make exception handling more granular and verbose.
...
Fixes #6127 .
2017-09-30 10:14:28 -07:00
rht
26f5d9a32c
zerver/tests: Remove print_function.
2017-09-27 18:05:45 -07:00
rht
1e87a4b68c
zerver/tests: Remove absolute_import.
2017-09-27 10:00:39 -07:00
Robert Hönig
43422fa6f2
outgoing webhook: Notify bot owner on failure response.
2017-09-26 16:11:27 -07:00
Tim Abbott
4674af0894
outgoing_webhook: Fix broken way of accessing realm.uri.
...
Previously, this accessed realm.uri via trying to use
zulip_default_context. That doesn't make any sense, because
zulip_default_context expects an HttpRequest object, and those are
nowhere in sight in the code path. We do, however, have the outgoing
webhook bot user involved in the event, and that's the object to
access realm.uri from here.
2017-09-25 07:05:02 -07:00
Robert Hönig
15a1bf2b58
outgoing webhook: Log all non-200 responses.
2017-09-25 06:00:42 -07:00
Elliott Jin
fcb889c5c0
outgoing webhooks: Remove process_failure interface method.
2017-07-24 14:10:14 -07:00
Elliott Jin
fdc9294a6e
outgoing webhooks: Don't call *_with_message if message is None.
2017-07-24 14:10:14 -07:00
vaibhav
ff63f0b1d3
Return response string instead of dict() from process_success, process_failure.
2017-07-24 14:10:14 -07:00
neiljp (Neil Pilgrim)
db0b985e82
mypy: Use specific kwargs types.
2017-07-07 10:56:33 -07:00
vaibhav
7f9b4d3a94
Outgoing Webhook System: Add usage of Interfaces in DoRestCall.
2017-06-28 11:11:21 -04:00
Tim Abbott
f5373c46f2
lint: Fix trailing newlines in outgoing webhook tests.
2017-05-25 16:28:11 -07:00
Elliott Jin
49adeee8c8
bots: Move service bot tests into separate file.
2017-05-25 15:00:51 -07:00
Vishnu Ks
bb98e35aa0
Replace othello@zulip.com with example_email('othello').
2017-05-24 19:37:36 -07:00
umkay
ccc70445d6
mypy: Fix strict-optional errors for test files.
...
Fix mypy --strict-optional errors in zerver/tests
2017-05-24 12:43:28 -07:00
Tim Abbott
17328a7557
tests: Fix incorrect use of get_realm_by_email_domain.
2017-05-24 12:43:28 -07:00
vaibhav
f94c321567
Outgoing Webhook System: Add support for personal message triggers.
2017-05-23 21:35:09 -07:00
Vishnu Ks
dafa89d52b
test_outgoing_webhook_system.py: Replace get_user_profile_by_email with example_user.
2017-05-23 15:27:21 -07:00
vaibhav
287aaa21b6
Outgoing Webhook System: Add outgoing webhook queue worker.
2017-05-23 08:21:08 -07:00
vaibhav
53a8b2ac87
Outgoing Webhook System: Add DoRestCall and helper functions
2017-05-23 08:19:16 -07:00