Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use literals in place of `HTTPStatus` constants in tests (#13463) | Dirk Klimpel | 2022-08-05 | 1 | -13/+13 |
| | |||||
* | Rate limit joins per-room (#13276) | David Robertson | 2022-07-19 | 1 | -1/+1 |
| | |||||
* | Extra type annotations in `test_server` (#13124) | David Robertson | 2022-06-28 | 1 | -37/+44 |
| | |||||
* | Clean up the test code for client disconnections (#12929) | Sean Quah | 2022-06-07 | 1 | -7/+7 |
| | | | | | | | * Reword failure message about `await_result=False` * Use `reactor.advance()` instead of `reactor.pump()` * Raise `AssertionError`s ourselves * Un-instance method `_test_disconnect` * Replace `ThreadedMemoryReactorClock` with `MemoryReactorClock` | ||||
* | Respect the `@cancellable` flag for `DirectServe{Html,Json}Resource`s (#12698) | Sean Quah | 2022-05-11 | 1 | -2/+109 |
| | | | | | | | | | | | | `DirectServeHtmlResource` and `DirectServeJsonResource` both inherit from `_AsyncResource`. These classes expect to be subclassed with `_async_render_*` methods. This commit has no effect on `JsonResource`, despite inheriting from `_AsyncResource`. `JsonResource` has its own `_async_render` override which will need to be updated separately. Signed-off-by: Sean Quah <seanq@element.io> | ||||
* | Add reactor to `SynapseRequest` and fix up types. (#10868) | Erik Johnston | 2021-09-24 | 1 | -11/+32 |
| | |||||
* | Improved validation for received requests (#9817) | Richard van der Hoff | 2021-04-23 | 1 | -0/+1 |
| | | | | | | * Simplify `start_listening` callpath * Correctly check the size of uploaded files | ||||
* | pass a reactor into SynapseSite (#9874) | Richard van der Hoff | 2021-04-23 | 1 | -0/+1 |
| | |||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -1/+4 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Remove spurious "SynapseRequest" result from `make_request" | Richard van der Hoff | 2020-12-15 | 1 | -12/+10 |
| | | | | This was never used, so let's get rid of it. | ||||
* | Skip redundant check on `request.args` | Richard van der Hoff | 2020-12-15 | 1 | -2/+1 |
| | |||||
* | Apply an IP range blacklist to push and key revocation requests. (#8821) | Patrick Cloke | 2020-12-02 | 1 | -1/+4 |
| | | | | | | | | | | | | 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 Hoff | 2020-11-16 | 1 | -38/+11 |
| | |||||
* | pass a Site into make_request | Richard van der Hoff | 2020-11-15 | 1 | -13/+27 |
| | |||||
* | Iteratively encode JSON responses to avoid blocking the reactor. (#8013) | Patrick Cloke | 2020-08-18 | 1 | -1/+0 |
| | |||||
* | Implement handling of HTTP HEAD requests. (#7999) | Patrick Cloke | 2020-08-03 | 1 | -3/+42 |
| | |||||
* | Return an empty body for OPTIONS requests. (#7886) | Patrick Cloke | 2020-07-24 | 1 | -6/+6 |
| | |||||
* | Downgrade warning on client disconnect to INFO (#7928) | Richard van der Hoff | 2020-07-24 | 1 | -58/+1 |
| | | | | Clients disconnecting before we finish processing the request happens from time to time. We don't need to yell about it | ||||
* | Merge different Resource implementation classes (#7732) | Erik Johnston | 2020-07-03 | 1 | -9/+3 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -2/+1 |
| | |||||
* | Create a ListenerConfig object (#7681) | Richard van der Hoff | 2020-06-16 | 1 | -2/+11 |
| | | | | | | | | | | 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. | ||||
* | Fix missing CORS headers on OPTION responses (#7560) | Erik Johnston | 2020-05-22 | 1 | -0/+28 |
| | | | Broke in #7534. | ||||
* | Return 200 OK for all OPTIONS requests (#7534) | Patrick Cloke | 2020-05-22 | 1 | -0/+53 |
| | |||||
* | Implement RedirectException (#6687) | Richard van der Hoff | 2020-01-15 | 1 | -2/+77 |
| | | | | | Allow REST endpoint implemnentations to raise a RedirectException, which will redirect the user's browser to a given location. | ||||
* | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -1/+1 |
| | | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :) | ||||
* | Fix servlet metric names (#5734) | Jorik Schellekens | 2019-07-24 | 1 | -5/+16 |
| | | | | | | | | | | * Fix servlet metric names Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Remove redundant check * Cover all return paths | ||||
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -1/+1 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -7/+7 |
| | |||||
* | Use native UPSERTs where possible (#4306) | Amber Brown | 2019-01-24 | 1 | -3/+9 |
| | |||||
* | Fix some tests which leaked logcontexts | Richard van der Hoff | 2018-11-19 | 1 | -1/+2 |
| | |||||
* | Remove some boilerplate in tests (#4156) | Amber Brown | 2018-11-07 | 1 | -5/+7 |
| | |||||
* | Add a regression test for logging on failed connections (#3912) | Amber Brown | 2018-09-20 | 1 | -2/+72 |
| | |||||
* | Fix the tests | Amber Brown | 2018-08-15 | 1 | -11/+6 |
| | |||||
* | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -1/+1 |
| | |||||
* | Test fixes for Python 3 (#3647) | Amber Brown | 2018-08-09 | 1 | -7/+4 |
| | |||||
* | Refactor REST API tests to use explicit reactors (#3351) | Amber Brown | 2018-07-17 | 1 | -10/+12 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -1/+2 |
| | |||||
* | Better testing framework for homeserver-using things (#3446) | Amber Brown | 2018-06-27 | 1 | -0/+128 |