summary refs log tree commit diff
path: root/tests/test_server.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pass a Site into make_requestRichard van der Hoff2020-11-151-13/+27
|
* Iteratively encode JSON responses to avoid blocking the reactor. (#8013)Patrick Cloke2020-08-181-1/+0
|
* Implement handling of HTTP HEAD requests. (#7999)Patrick Cloke2020-08-031-3/+42
|
* Return an empty body for OPTIONS requests. (#7886)Patrick Cloke2020-07-241-6/+6
|
* Downgrade warning on client disconnect to INFO (#7928)Richard van der Hoff2020-07-241-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 Johnston2020-07-031-9/+3
|
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-2/+1
|
* Create a ListenerConfig object (#7681)Richard van der Hoff2020-06-161-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 Johnston2020-05-221-0/+28
| | | Broke in #7534.
* Return 200 OK for all OPTIONS requests (#7534)Patrick Cloke2020-05-221-0/+53
|
* Implement RedirectException (#6687)Richard van der Hoff2020-01-151-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 Morgan2019-08-301-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 Schellekens2019-07-241-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 Brown2019-07-041-1/+1
|
* Run Black. (#5482)Amber Brown2019-06-201-7/+7
|
* Use native UPSERTs where possible (#4306)Amber Brown2019-01-241-3/+9
|
* Fix some tests which leaked logcontextsRichard van der Hoff2018-11-191-1/+2
|
* Remove some boilerplate in tests (#4156)Amber Brown2018-11-071-5/+7
|
* Add a regression test for logging on failed connections (#3912)Amber Brown2018-09-201-2/+72
|
* Fix the testsAmber Brown2018-08-151-11/+6
|
* Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-1/+1
|
* Test fixes for Python 3 (#3647)Amber Brown2018-08-091-7/+4
|
* Refactor REST API tests to use explicit reactors (#3351)Amber Brown2018-07-171-10/+12
|
* run isortAmber Brown2018-07-091-1/+2
|
* Better testing framework for homeserver-using things (#3446)Amber Brown2018-06-271-0/+128