MatrixSynapse/tests
Shay 70ce9aea71
Strip unauthorized fields from `unsigned` object in events received over federation (#11530)
* add some tests to verify we are stripping unauthorized fields out of unsigned

* add function to strip unauthorized fields from the unsigned object of event

* newsfragment

* update newsfragment number

* add check to on_send_membership_event

* refactor tests

* fix lint error

* slightly refactor tests and add some comments

* slight refactor

* refactor tests

* fix import error

* slight refactor

* remove unsigned filtration code from synapse/handlers/federation_event.py

* lint

* move unsigned filtering code to event base

* refactor tests

* update newsfragment

* requested changes

* remove unused retun values
2022-01-06 09:09:30 -08:00
..
api
app
appservice
config
crypto
events
federation Include the topic event in the prejoin state, per MSC3173. (#11666) 2022-01-04 11:08:08 -05:00
handlers Cache empty responses from `/user/devices` (#11587) 2022-01-05 13:33:28 +00:00
http
logging
module_api
push
replication Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
rest Fix get federation status of destination if no error occured (#11593) 2022-01-05 14:46:50 -05:00
scripts
server_notices
state
storage Fix a type annotation in `test_account_data.py` and remove it from the Mypy exclusion list. (#11657) 2021-12-29 15:12:30 +00:00
test_utils Cache empty responses from `/user/devices` (#11587) 2022-01-05 13:33:28 +00:00
util Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11505 (#11687) 2022-01-05 11:41:49 +00:00
__init__.py
server.py Refactor `tests.util.setup_test_homeserver` and `tests.server.setup_test_homeserver`. (#11503) 2021-12-21 16:12:05 +00:00
test_distributor.py
test_event_auth.py
test_federation.py Strip unauthorized fields from `unsigned` object in events received over federation (#11530) 2022-01-06 09:09:30 -08:00
test_mau.py
test_metrics.py
test_phone_home.py
test_preview.py
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py
utils.py Refactor `tests.util.setup_test_homeserver` and `tests.server.setup_test_homeserver`. (#11503) 2021-12-21 16:12:05 +00:00