forked-synapse/tests
Erik Johnston b970cb0e96 Refactor request sending to have better excpetions (#4358)
* Correctly retry and back off if we get a HTTPerror response

* Refactor request sending to have better excpetions

MatrixFederationHttpClient blindly reraised exceptions to the caller
without differentiating "expected" failures (e.g. connection timeouts
etc) versus more severe problems (e.g. programming errors).

This commit adds a RequestSendFailed exception that is raised when
"expected" failures happen, allowing the TransactionQueue to log them as
warnings while allowing us to log other exceptions as actual exceptions.
2019-01-08 11:04:28 +00:00
..
api create support user (#4141) 2018-12-14 18:20:59 +00:00
app Port tests/ to Python 3 (#3808) 2018-09-07 02:58:18 +10:00
appservice Run black. 2018-08-10 23:54:09 +10:00
config Merge branch 'develop' of github.com:matrix-org/synapse into erikj/alias_disallow_list 2018-10-25 15:25:31 +01:00
crypto Check logcontexts before and after each test (#4190) 2018-11-27 13:47:18 +11:00
events Fix a number of flake8 errors 2018-10-24 10:39:03 +01:00
federation Run black. 2018-08-10 23:54:09 +10:00
handlers create support user (#4141) 2018-12-14 18:20:59 +00:00
http Refactor request sending to have better excpetions (#4358) 2019-01-08 11:04:28 +00:00
push Fix logcontext leak in http pusher test 2018-11-19 17:07:01 +00:00
replication Clean up event accesses and tests 2018-11-02 13:44:14 +00:00
rest Remove v1 only REST APIs now we don't ship matrix console (#4334) 2018-12-29 23:12:30 +11:00
scripts Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
server_notices fix broken test 2018-10-25 23:15:03 +01:00
state Add helpers for getting prev and auth events (#4139) 2018-11-06 00:35:15 +11:00
storage create support user (#4141) 2018-12-14 18:20:59 +00:00
util Include eventid in log lines when processing incoming federation transactions (#3959) 2018-09-27 11:25:34 +01:00
__init__.py Patch defer.inlineCallbacks to check logcontexts in tests (#4205) 2018-12-04 11:30:32 +01:00
patch_inline_callbacks.py Patch defer.inlineCallbacks to check logcontexts in tests (#4205) 2018-12-04 11:30:32 +01:00
server.py Fix IP URL previews on Python 3 (#4215) 2018-12-22 01:56:13 +11:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_dns.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Run black. 2018-08-10 23:54:09 +10:00
test_federation.py Fix some tests which leaked logcontexts 2018-11-19 17:07:01 +00:00
test_mau.py Add option to track MAU stats (but not limit people) (#3830) 2018-11-15 18:08:27 +00:00
test_metrics.py Fix test_metrics.py compatibility prometheus_client 0.5 2018-12-21 01:53:57 +01:00
test_preview.py Run black. 2018-08-10 23:54:09 +10:00
test_server.py Fix some tests which leaked logcontexts 2018-11-19 17:07:01 +00:00
test_state.py Port tests/ to Python 3 (#3808) 2018-09-07 02:58:18 +10:00
test_terms_auth.py Fix the terms UI auth tests 2018-11-15 23:00:28 -07:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Factor SSO success handling out of CAS login (#4264) 2018-12-07 13:10:07 +01:00
test_visibility.py Fix tests on postgresql (#3740) 2018-09-04 02:21:48 +10:00
unittest.py create support user (#4141) 2018-12-14 18:20:59 +00:00
utils.py Return well_known in /login response (#4319) 2018-12-24 10:44:33 +01:00