MatrixSynapse/tests
Richard van der Hoff 01333681bc
Preparatory refactoring of the SamlHandlerTestCase (#8938)
* move simple_async_mock to test_utils

... so that it can be re-used

* Remove references to `SamlHandler._map_saml_response_to_user` from tests

This method is going away, so we can no longer use it as a test point. Instead,
factor out a higher-level method which takes a SAML object, and verify correct
behaviour by mocking out `AuthHandler.complete_sso_login`.

* changelog
2020-12-15 20:56:10 +00:00
..
api Remove redundant mocking 2020-12-02 17:53:38 +00:00
app Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
appservice Add ability for access tokens to belong to one user but grant access to another user. (#8616) 2020-10-29 15:58:44 +00:00
config Use the default templates when a custom template file cannot be found (#8037) 2020-08-17 17:05:00 +01:00
crypto Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
events Convert the message handler to async/await. (#7884) 2020-07-22 12:29:15 -04:00
federation Remove redundant `HomeserverTestCase.render` 2020-11-16 18:24:08 +00:00
handlers Preparatory refactoring of the SamlHandlerTestCase (#8938) 2020-12-15 20:56:10 +00:00
http Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
logging Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
module_api Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
push Add additional validation to pusher URLs. (#8865) 2020-12-04 10:51:56 -05:00
replication Default to blacklisting reserved IP ranges and add a whitelist. (#8870) 2020-12-09 13:56:06 -05:00
rest Add number of local devices to Room Details Admin API (#8886) 2020-12-11 10:42:47 +00:00
scripts Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
server_notices Remove redundant `HomeserverTestCase.render` 2020-11-16 18:24:08 +00:00
state Pass room_id to get_auth_chain_difference (#8879) 2020-12-04 15:52:49 +00:00
storage Add number of local devices to Room Details Admin API (#8886) 2020-12-11 10:42:47 +00:00
test_utils Preparatory refactoring of the SamlHandlerTestCase (#8938) 2020-12-15 20:56:10 +00:00
util Implement and use an @lru_cache decorator (#8595) 2020-10-30 11:43:17 +00:00
__init__.py Move patch_inline_callbacks into synapse/ 2019-10-10 10:53:06 +01:00
server.py UIA: offer only available auth flows 2020-12-02 18:54:15 +00:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
test_federation.py Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
test_mau.py Remove redundant `HomeserverTestCase.render` 2020-11-16 18:24:08 +00:00
test_metrics.py move DeferredCache into its own module 2020-10-14 23:38:14 +01:00
test_phone_home.py Allow background tasks to be run on a separate worker. (#8369) 2020-10-02 08:23:15 -04:00
test_preview.py Do not raise a 500 exception when previewing empty media. (#8883) 2020-12-07 10:00:08 -05:00
test_server.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_state.py Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
test_terms_auth.py Remove redundant `HomeserverTestCase.render` 2020-11-16 18:24:08 +00:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
test_visibility.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
unittest.py fix up various test cases 2020-12-02 16:30:01 +00:00
utils.py remove unused DeferredMockCallable 2020-12-02 18:38:29 +00:00