MatrixSynapse/tests
Richard van der Hoff 1bebc0b78c
Clean up federation event auth code (#10539)
* drop old-room hack

pretty sure we don't need this any more.

* Remove incorrect comment about modifying `context`

It doesn't look like the supplied context is ever modified.

* Stop `_auth_and_persist_event` modifying its parameters

This is only called in three places. Two of them don't pass `auth_events`, and
the third doesn't use the dict after passing it in, so this should be non-functional.

* Stop `_check_event_auth` modifying its parameters

`_check_event_auth` is only called in three places. `on_send_membership_event`
doesn't pass an `auth_events`, and `prep` and `_auth_and_persist_event` do not
use the map after passing it in.

* Stop `_update_auth_events_and_context_for_auth` modifying its parameters

Return the updated auth event dict, rather than modifying the parameter.

This is only called from `_check_event_auth`.

* Improve documentation on `_auth_and_persist_event`

Rename `auth_events` parameter to better reflect what it contains.

* Improve documentation on `_NewEventInfo`

* Improve documentation on `_check_event_auth`

rename `auth_events` parameter to better describe what it contains

* changelog
2021-08-06 13:54:23 +01:00
..
api
app Add a new version of the R30 phone-home metric, which removes a false impression of retention given by the old R30 metric (#10332) 2021-07-19 16:11:34 +01:00
appservice
config
crypto
events Restricted rooms (MSC3083) should not have their allow key redacted. (#10489) 2021-07-28 07:03:01 -04:00
federation
handlers Refactoring before implementing the updated spaces summary. (#10527) 2021-08-05 12:39:17 +00:00
http allow specifying https:// proxy (#10411) 2021-07-27 17:31:06 +01:00
logging
module_api Add `get_userinfo_by_id` method to `ModuleApi` (#9581) 2021-08-04 10:40:25 +00:00
push Add a setting to disable TLS for sending email (#10546) 2021-08-06 10:13:34 +00:00
replication Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
rest Add a setting to disable TLS for sending email (#10546) 2021-08-06 10:13:34 +00:00
scripts
server_notices
state Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
storage Improve event caching code (#10119) 2021-08-04 13:54:51 +01:00
test_utils Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
util Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
__init__.py
server.py Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
test_distributor.py
test_event_auth.py Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
test_federation.py Clean up federation event auth code (#10539) 2021-08-06 13:54:23 +01:00
test_mau.py
test_metrics.py
test_phone_home.py
test_preview.py Support underscores (in addition to hyphens) for charset detection. (#10410) 2021-07-27 17:29:42 +00:00
test_server.py
test_state.py Add a module type for account validity (#9884) 2021-07-16 18:11:53 +02:00
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py Add a new version of the R30 phone-home metric, which removes a false impression of retention given by the old R30 metric (#10332) 2021-07-19 16:11:34 +01:00
utils.py Allow setting transaction limit for db connections (#10440) 2021-08-02 13:24:43 +00:00