synapse/tests
Brendan Abolivier a4c3a361b7
Add rate-limiting on registration (#4735)
* Rate-limiting for registration

* Add unit test for registration rate limiting

* Add config parameters for rate limiting on auth endpoints

* Doc

* Fix doc of rate limiting function

Co-Authored-By: babolivier <contact@brendanabolivier.com>

* Incorporate review

* Fix config parsing

* Fix linting errors

* Set default config for auth rate limiting

* Fix tests

* Add changelog

* Advance reactor instead of mocked clock

* Move parameters to registration specific config and give them more sensible default values

* Remove unused config options

* Don't mock the rate limiter un MAU tests

* Rename _register_with_store into register_with_store

* Make CI happy

* Remove unused import

* Update sample config

* Fix ratelimiting test for py2

* Add non-guest test
2019-03-05 14:25:33 +00:00
..
api Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
app Fix flake8 issues 2019-01-23 10:53:48 +02:00
appservice Run black. 2018-08-10 23:54:09 +10:00
config Clarify and fix behaviour when there are multiple aliases 2019-02-14 18:16:32 +00:00
crypto Make add_hashes_and_signatures operate on dicts 2019-01-29 11:12:38 +00: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 Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
http Move ClientTLSOptionsFactory init out of refresh_certificates (#4611) 2019-02-11 18:03:30 +00:00
push Fix logcontext leak in http pusher test 2018-11-19 17:07:01 +00:00
replication Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00
rest Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00: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 Pass through room version to event auth 2019-01-25 18:31:41 +00:00
storage UPSERT many functionality (#4644) 2019-02-20 23:03:30 +11:00
test_utils Enable configuring test log level via env var (#4506) 2019-01-29 12:07:00 +00:00
util Add a caching layer to .well-known responses (#4516) 2019-01-30 10:55:25 +00: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 Update test_typing to use HomeserverTestCase. (#4771) 2019-03-04 10:05:39 +00:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Pass through room version to event auth 2019-01-25 18:31:41 +00:00
test_federation.py Fix some tests which leaked logcontexts 2018-11-19 17:07:01 +00:00
test_mau.py Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +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 Use native UPSERTs where possible (#4306) 2019-01-24 21:31:54 +11: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 test to use valid event format 2019-01-29 11:19:50 +00:00
unittest.py Update test_typing to use HomeserverTestCase. (#4771) 2019-03-04 10:05:39 +00:00
utils.py Add rate-limiting on registration (#4735) 2019-03-05 14:25:33 +00:00