forked-synapse/tests
Brendan Abolivier 52839886d6
Allow configuring a range for the account validity startup job
When enabling the account validity feature, Synapse will look at startup for registered account without an expiration date, and will set one equals to 'now + validity_period' for them. On large servers, it can mean that a large number of users will have the same expiration date, which means that they will all be sent a renewal email at the same time, which isn't ideal.
In order to mitigate this, this PR allows server admins to define a 'max_delta' so that the expiration date is a random value in the [now + validity_period ; now + validity_period + max_delta] range. This allows renewal emails to be progressively sent over a configured period instead of being sent all in one big batch.
2019-05-28 16:52:45 +01:00
..
api Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
app Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
appservice Run black. 2018-08-10 23:54:09 +10:00
config Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
crypto Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
events Fix a number of flake8 errors 2018-10-24 10:39:03 +01:00
federation Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
handlers Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
http Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
push Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
replication Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
rest Allow configuring a range for the account validity startup job 2019-05-28 16:52:45 +01:00
scripts Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
server_notices Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
state Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
storage Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
test_utils Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
util Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
__init__.py Patch defer.inlineCallbacks to check logcontexts in tests (#4205) 2018-12-04 11:30:32 +01:00
patch_inline_callbacks.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
server.py Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_federation.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_mau.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_metrics.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05: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 Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
test_terms_auth.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_visibility.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
unittest.py Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171) 2019-05-13 15:01:14 -05:00
utils.py Make all the rate limiting options more consistent (#5181) 2019-05-15 12:06:04 -05:00