summary refs log tree commit diff
path: root/tests/app (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Properly typecheck tests.app (#14984David Robertson2023-02-033-14/+25
|
* Use servlets for /key/ endpoints. (#14229)Patrick Cloke2022-10-201-1/+1
| | | | | To fix the response for unknown endpoints under that prefix. See MSC3743.
* Remove configuration options for direct TCP replication. (#13647)Patrick Cloke2022-09-061-2/+2
| | | Removes the ability to configure legacy direct TCP replication. Workers now require Redis to run.
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-16/+18
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Don't start Synapse master process if `worker_app` is set (#11416)Shay2021-11-301-0/+31
| | | | | | | | | | | | | | | | | | | | | * Add check to catch syanpse master process starting when workers are configured * add test to verify that starting master process with worker config raises error * newsfragment * specify config.worker.worker_app in check * update test * report specific config option that triggered the error Co-authored-by: reivilibre <oliverw@matrix.org> * clarify error message Co-authored-by: reivilibre <oliverw@matrix.org> Co-authored-by: reivilibre <oliverw@matrix.org>
* Use direct references for configuration variables (part 4). (#10893)Patrick Cloke2021-09-231-1/+1
|
* Flatten the synapse.rest.client package (#10600)reivilibre2021-08-171-1/+1
|
* Add a new version of the R30 phone-home metric, which removes a false ↵reivilibre2021-07-191-0/+242
| | | | | impression of retention given by the old R30 metric (#10332) Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Add tests to characterise the current behaviour of R30 phone-home metrics ↵reivilibre2021-07-151-0/+153
| | | | | | (#10315) Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
* Split presence out of master (#9820)Erik Johnston2021-04-231-83/+0
|
* remove `HomeServer.get_config` (#9815)Richard van der Hoff2021-04-141-1/+1
| | | | Every single time I want to access the config object, I have to remember whether or not we use `get_config`. Let's just get rid of it.
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-142-2/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-1/+1
|
* Remove spurious "SynapseRequest" result from `make_request"Richard van der Hoff2020-12-152-4/+4
| | | | This was never used, so let's get rid of it.
* Apply an IP range blacklist to push and key revocation requests. (#8821)Patrick Cloke2020-12-022-3/+3
| | | | | | | | | | | | Replaces the `federation_ip_range_blacklist` configuration setting with an `ip_range_blacklist` setting with wider scope. It now applies to: * Federation * Identity servers * Push notifications * Checking key validitity for third-party invite events The old `federation_ip_range_blacklist` setting is still honored if present, but with reduced scope (it only applies to federation and identity servers).
* Remove redundant calls to `render()`Richard van der Hoff2020-11-162-14/+8
|
* use global make_request() directly where we have a custom ResourceRichard van der Hoff2020-11-152-14/+16
| | | | | | Where we want to render a request against a specific Resource, call the global make_request() function rather than the one in HomeserverTestCase, allowing us to pass in an appropriate `Site`.
* Solidify the HomeServer constructor. (#8515)Jonathan de Jong2020-10-152-3/+3
| | | | | | This implements a more standard API for instantiating a homeserver and moves some of the dependency injection into the test suite. More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`.
* Create a ListenerConfig object (#7681)Richard van der Hoff2020-06-162-16/+18
| | | | | | | | | | This ended up being a bit more invasive than I'd hoped for (not helped by generic_worker duplicating some of the code from homeserver), but hopefully it's an improvement. The idea is that, rather than storing unstructured `dict`s in the config for the listener configurations, we instead parse it into a structured `ListenerConfig` object.
* Remove spurious "name" parameter to `default_config`Richard van der Hoff2020-03-242-4/+4
| | | | | this is never set to anything other than "test", and is a source of unnecessary boilerplate.
* set worker_app for frontend proxy test (#7003)Richard van der Hoff2020-02-271-0/+5
| | | to stop the federationhandler trying to do master stuff
* Store room version on invite (#6983)Richard van der Hoff2020-02-261-0/+8
| | | | | When we get an invite over federation, store the room version in the rooms table. The general idea here is that, when we pull the invite out again, we'll want to know what room_version it belongs to (so that we can later redact it if need be). So we need to store it somewhere...
* Merge worker apps into one. (#6964)Erik Johnston2020-02-252-10/+6
|
* Run Black on the tests again (#5170)Amber Brown2019-05-101-24/+22
|
* Fix flake8 issuesJason Robinson2019-01-231-2/+8
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Fix openid tests after rebaseJason Robinson2019-01-231-2/+2
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Fix sorting of imports in tests. Remove an unnecessary mockJason Robinson2019-01-231-2/+2
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Add tests for the openid lister for SynapseHomeServerJason Robinson2019-01-231-1/+48
| | | | | | | Check all possible variants of openid and federation listener on/off possibilities. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Add tests for the openid lister for FederationReaderServerJason Robinson2019-01-231-0/+66
| | | | | | | Check all possible variants of openid and federation listener on/off possibilities. Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Fix a test docstring in frontend proxy testsJason Robinson2019-01-231-1/+1
| | | | Signed-off-by: Jason Robinson <jasonr@matrix.org>
* Port tests/ to Python 3 (#3808)Amber Brown2018-09-071-2/+2
|
* Integrate presence from hotfixes (#3694)Amber Brown2018-08-182-0/+88