synapse/tests/rest/client/v2_alpha
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
..
__init__.py Refactor REST API tests to use explicit reactors (#3351) 2018-07-17 20:43:18 +10:00
test_auth.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_capabilities.py Add admin api for sending server_notices (#5121) 2019-05-02 11:59:16 +01:00
test_filter.py Remove some boilerplate in tests (#4156) 2018-11-07 03:00:00 +11:00
test_register.py Allow configuring a range for the account validity startup job 2019-05-28 16:52:45 +01:00
test_sync.py Add admin api for sending server_notices (#5121) 2019-05-02 11:59:16 +01:00