MatrixSynapse/tests/storage
David Robertson e2a1adbf5d
Allow selecting "prejoin" events by state keys (#14642)
* Declare new config

* Parse new config

* Read new config

* Don't use trial/our TestCase where it's not needed

Before:

```
$ time trial tests/events/test_utils.py > /dev/null

real	0m2.277s
user	0m2.186s
sys	0m0.083s
```

After:
```
$ time trial tests/events/test_utils.py > /dev/null

real	0m0.566s
user	0m0.508s
sys	0m0.056s
```

* Helper to upsert to event fields

without exceeding size limits.

* Use helper when adding invite/knock state

Now that we allow admins to include events in prejoin room state with
arbitrary state keys, be a good Matrix citizen and ensure they don't
accidentally create an oversized event.

* Changelog

* Move StateFilter tests

should have done this in #14668

* Add extra methods to StateFilter

* Use StateFilter

* Ensure test file enforces typed defs; alphabetise

* Workaround surprising get_current_state_ids

* Whoops, fix mypy
2022-12-13 00:54:46 +00:00
..
databases Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
util Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
__init__.py
test__base.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_account_data.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_appservice.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_background_update.py
test_base.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_cleanup_extrems.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_client_ips.py Revert the deletion of stale devices due to performance issues. (#14662) 2022-12-12 13:55:23 +00:00
test_database.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_devices.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_directory.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_e2e_room_keys.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_end_to_end_keys.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_event_chain.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_event_federation.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_event_metrics.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_event_push_actions.py
test_events.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_id_generators.py
test_keys.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_main.py
test_monthly_active_users.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_profile.py
test_purge.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_receipts.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_redaction.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_registration.py
test_relations.py
test_rollback_worker.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_room.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_room_search.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_roommember.py
test_state.py Allow selecting "prejoin" events by state keys (#14642) 2022-12-13 00:54:46 +00:00
test_stream.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_transactions.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_txn_limit.py Require types in tests.storage. (#14646) 2022-12-09 12:36:32 -05:00
test_unsafe_locale.py
test_user_directory.py Add optional ICU support for user search (#14464) 2022-12-12 13:21:17 +01:00