0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 23:42:33 +01:00
synapse/tests/rest
Richard van der Hoff c3db7a0b59
Tests: replace mocked Authenticator with the real thing (#11913)
If we prepopulate the test homeserver with a key for a remote homeserver, we
can make federation requests to it without having to stub out the
authenticator. This has two advantages:

 * means that what we are testing is closer to reality (ie, we now have
   complete tests for the incoming-request-authorisation flow)

 * some tests require that other objects be signed by the remote server (eg,
   the event in `/send_join`), and doing that would require a whole separate
   set of mocking out. It's much simpler just to use real keys.
2022-02-11 12:06:02 +00:00
..
admin Add type hints to tests/rest/admin (#11851) 2022-01-31 14:20:05 -05:00
client Tests: replace mocked Authenticator with the real thing (#11913) 2022-02-11 12:06:02 +00:00
key Add reactor to SynapseRequest and fix up types. (#10868) 2021-09-24 11:01:25 +01:00
media Implement a content type allow list for URL previews (#11936) 2022-02-10 15:43:01 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_health.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_well_known.py Support for serving server well-known files (#11211) 2021-11-01 15:10:16 +00:00