synapse/tests/replication
Erik Johnston 2927921942
Clean up `ShardedWorkerHandlingConfig` (#9466)
* Split ShardedWorkerHandlingConfig

This is so that we have a type level understanding of when it is safe to
call `get_instance(..)` (as opposed to `should_handle(..)`).

* Remove special cases in ShardedWorkerHandlingConfig.

`ShardedWorkerHandlingConfig` tried to handle the various different ways
it was possible to configure federation senders and pushers. This led to
special cases that weren't hit during testing.

To fix this the handling of the different cases is moved from there and
`generic_worker` into the worker config class. This allows us to have
the logic in one place and allows the rest of the code to ignore the
different cases.
2021-02-24 13:23:18 +00:00
..
slave Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
tcp Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
__init__.py Add a /replication API for extracting the updates that happened on 2016-03-01 14:49:41 +00:00
_base.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_auth.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_client_reader_shard.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_federation_ack.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
test_federation_sender_shard.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
test_multi_media_repo.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_pusher_shard.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
test_sharded_event_persister.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00