-
- Downloads
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.
Showing
- changelog.d/11913.misc 1 addition, 0 deletionschangelog.d/11913.misc
- tests/federation/test_complexity.py 2 additions, 2 deletionstests/federation/test_complexity.py
- tests/federation/test_federation_server.py 2 additions, 2 deletionstests/federation/test_federation_server.py
- tests/federation/transport/test_knocking.py 2 additions, 2 deletionstests/federation/transport/test_knocking.py
- tests/federation/transport/test_server.py 2 additions, 4 deletionstests/federation/transport/test_server.py
- tests/rest/client/test_third_party_rules.py 2 additions, 4 deletionstests/rest/client/test_third_party_rules.py
- tests/unittest.py 106 additions, 30 deletionstests/unittest.py
Loading
Please register or sign in to comment