synapse/tests/handlers
Richard van der Hoff 895e04319b
Preparatory refactoring of the OidcHandlerTestCase (#8911)
* Remove references to handler._auth_handler

(and replace them with hs.get_auth_handler)

* Factor out a utility function for building Requests

* Remove mocks of `OidcHandler._map_userinfo_to_user`

This method is going away, so mocking it out is no longer a valid approach.

Instead, we mock out lower-level methods (eg _remote_id_from_userinfo), or
simply allow the regular implementation to proceed and update the expectations
accordingly.

* Remove references to `OidcHandler._map_userinfo_to_user` from tests

This method is going away, so we can no longer use it as a test point. Instead
we build mock "callback" requests which we pass into `handle_oidc_callback`,
and verify correct behaviour by mocking out `AuthHandler.complete_sso_login`.
2020-12-14 11:38:50 +00:00
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
test_admin.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
test_appservice.py Start fewer opentracing spans (#8640) 2020-10-26 09:30:19 +00:00
test_auth.py Simplify the way the HomeServer object caches its internal attributes. (#8565) 2020-11-30 13:28:44 -05:00
test_device.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_directory.py Remove redundant mocking 2020-12-02 17:53:38 +00:00
test_e2e_keys.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
test_e2e_room_keys.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
test_federation.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_message.py Remove redundant HomeserverTestCase.render 2020-11-16 18:24:08 +00:00
test_oidc.py Preparatory refactoring of the OidcHandlerTestCase (#8911) 2020-12-14 11:38:50 +00:00
test_password_providers.py Create a PasswordProvider wrapper object (#8849) 2020-12-02 10:38:50 +00:00
test_presence.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_profile.py Remove redundant mocking 2020-12-02 17:53:38 +00:00
test_register.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
test_saml.py Skip the SAML tests if xmlsec1 isn't available. (#8905) 2020-12-09 12:23:30 -05:00
test_stats.py Rename 'populate_stats_process_rooms_2' background job back to 'populate_stats_process_rooms' again (#8243) 2020-09-08 11:05:59 +01:00
test_sync.py Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
test_typing.py Merge pull request #8858 from matrix-org/rav/sso_uia 2020-12-02 20:06:53 +00:00
test_user_directory.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00