diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-12-04 10:56:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 10:56:28 -0500 |
commit | 96358cb42410a4be6268eaa3ffec229c550208ea (patch) | |
tree | 5edef7ceff55c023747f5084ea4304649b15781d /tests/replication/test_client_reader_shard.py | |
parent | Pass room_id to get_auth_chain_difference (#8879) (diff) | |
download | synapse-96358cb42410a4be6268eaa3ffec229c550208ea.tar.xz |
Add authentication to replication endpoints. (#8853)
Authentication is done by checking a shared secret provided in the Synapse configuration file.
Diffstat (limited to 'tests/replication/test_client_reader_shard.py')
-rw-r--r-- | tests/replication/test_client_reader_shard.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/replication/test_client_reader_shard.py b/tests/replication/test_client_reader_shard.py index 96801db473..fdaad3d8ad 100644 --- a/tests/replication/test_client_reader_shard.py +++ b/tests/replication/test_client_reader_shard.py @@ -14,27 +14,20 @@ # limitations under the License. import logging -from synapse.api.constants import LoginType from synapse.http.site import SynapseRequest from synapse.rest.client.v2_alpha import register from tests.replication._base import BaseMultiWorkerStreamTestCase -from tests.rest.client.v2_alpha.test_auth import DummyRecaptchaChecker from tests.server import FakeChannel, make_request logger = logging.getLogger(__name__) class ClientReaderTestCase(BaseMultiWorkerStreamTestCase): - """Base class for tests of the replication streams""" + """Test using one or more client readers for registration.""" servlets = [register.register_servlets] - def prepare(self, reactor, clock, hs): - self.recaptcha_checker = DummyRecaptchaChecker(hs) - auth_handler = hs.get_auth_handler() - auth_handler.checkers[LoginType.RECAPTCHA] = self.recaptcha_checker - def _get_worker_hs_config(self) -> dict: config = self.default_config() config["worker_app"] = "synapse.app.client_reader" |