MatrixSynapse/tests/storage
Patrick Cloke 5e024a0645
Modify StoreKeyFetcher to read from server_keys_json. (#15417)
Before this change:

* `PerspectivesKeyFetcher` and `ServerKeyFetcher` write to `server_keys_json`.
* `PerspectivesKeyFetcher` also writes to `server_signature_keys`.
* `StoreKeyFetcher` reads from `server_signature_keys`.

After this change:

* `PerspectivesKeyFetcher` and `ServerKeyFetcher` write to `server_keys_json`.
* `PerspectivesKeyFetcher` also writes to `server_signature_keys`.
* `StoreKeyFetcher` reads from `server_keys_json`.

This results in `StoreKeyFetcher` now using the results from `ServerKeyFetcher`
in addition to those from `PerspectivesKeyFetcher`, i.e. keys which are directly
fetched from a server will now be pulled from the database instead of refetched.

An additional minor change is included to avoid creating a `PerspectivesKeyFetcher`
(and checking it) if no `trusted_key_servers` are configured.

The overall impact of this should be better usage of cached results:

* If a server has no trusted key servers configured then it should reduce how often keys
  are fetched.
* if a server's trusted key server does not have a requested server's keys cached then it
  should reduce how often keys are directly fetched.
2023-04-20 12:30:32 -04:00
..
databases Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
util
__init__.py
test__base.py
test_account_data.py Fix a long-standing bug where an initial sync would not respond to changes to the list of ignored users if there was an initial sync cached. (#15163) 2023-02-28 17:11:26 +00:00
test_appservice.py
test_background_update.py
test_base.py
test_cleanup_extrems.py Remove unused `room_alias` field from `/createRoom` response (#15093) 2023-02-22 11:07:28 +00:00
test_client_ips.py Revert pruning of old devices (#15360) 2023-03-31 13:51:51 +01:00
test_database.py
test_devices.py
test_directory.py
test_e2e_room_keys.py
test_end_to_end_keys.py
test_event_chain.py Batch up storing state groups when creating new room (#14918) 2023-02-24 13:15:29 -08:00
test_event_federation.py Fix spinloop during partial state sync when a prev event is in backoff (#15351) 2023-03-30 13:36:41 +01:00
test_event_metrics.py Remove unused `room_alias` field from `/createRoom` response (#15093) 2023-02-22 11:07:28 +00:00
test_event_push_actions.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_events.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_id_generators.py
test_keys.py Modify StoreKeyFetcher to read from server_keys_json. (#15417) 2023-04-20 12:30:32 -04:00
test_main.py
test_monthly_active_users.py
test_profile.py
test_purge.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_receipts.py Remove unused `room_alias` field from `/createRoom` response (#15093) 2023-02-22 11:07:28 +00:00
test_redaction.py Add a class UnpersistedEventContext to allow for the batching up of storing state groups (#14675) 2023-02-09 13:05:02 -08:00
test_registration.py
test_relations.py
test_rollback_worker.py
test_room.py
test_room_search.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_roommember.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_state.py Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
test_stream.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_transactions.py
test_txn_limit.py
test_unsafe_locale.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_user_directory.py Fix ICU tests on alpine / macOS. (#15177) 2023-03-03 14:22:06 +00:00