- Nov 16, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
remove the stubbing out of `request.process`, so that `requestReceived` also renders the request via the appropriate resource. Replace render() with a stub for now.
-
Richard van der Hoff authored
FakeChannel has everything we need, and this more accurately models the real flow.
-
Richard van der Hoff authored
Some tests want to set some custom HTTP request headers, so provide a way to do that before calling requestReceived().
-
- Nov 15, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Oct 30, 2020
-
-
Erik Johnston authored
Fixes #6755
-
- Oct 29, 2020
-
-
Patrick Cloke authored
This modifies the configuration of structured logging to be usable from the standard Python logging configuration. This also separates the formatting of logs from the transport allowing JSON logs to files or standard logs to sockets.
-
- Oct 27, 2020
-
-
Dan Callahan authored
This allows trailing commas in multi-line arg lists. Minor, but we might as well keep our formatting current with regard to our minimum supported Python version. Signed-off-by:
Dan Callahan <danc@element.io>
-
- Oct 09, 2020
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
This could, very occasionally, cause: ``` tests.test_visibility.FilterEventsForServerTestCase.test_large_room =============================================================================== [ERROR] Traceback (most recent call last): File "/src/tests/rest/media/v1/test_media_storage.py", line 86, in test_ensure_media_is_in_local_cache self.wait_on_thread(x) File "/src/tests/unittest.py", line 296, in wait_on_thread self.reactor.advance(0.01) File "/src/.tox/py35/lib/python3.5/site-packages/twisted/internet/task.py", line 826, in advance self._sortCalls() File "/src/.tox/py35/lib/python3.5/site-packages/twisted/internet/task.py", line 787, in _sortCalls self.calls.sort(key=lambda a: a.getTime()) builtins.ValueError: list modified during sort tests.rest.media.v1.test_media_storage.MediaStorageTests.test_ensure_media_is_in_local_cache ```
-
- Oct 02, 2020
-
-
Erik Johnston authored
-
- Sep 18, 2020
-
-
Patrick Cloke authored
This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
-
- Sep 10, 2020
-
-
Andrew Morgan authored
This PR adds a confirmation step to resetting your user password between clicking the link in your email and your password actually being reset. This is to better align our password reset flow with the industry standard of requiring a confirmation from the user after email validation.
-
- Sep 04, 2020
-
-
Patrick Cloke authored
-
- Jul 15, 2020
-
-
Erik Johnston authored
* Fix client reader sharding tests * Newsfile * Fix typing * Update changelog.d/7853.misc Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Move mocking of http_client to tests Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
- Jun 16, 2020
-
-
Dagfinn Ilmari Mannsåker authored
-
- Jan 03, 2020
-
-
Richard van der Hoff authored
We already get the Site via the Channel, so there's no need for a dedicated RequestFactory: we can just use the right constructor.
-
- Dec 18, 2019
-
-
Erik Johnston authored
This encapsulates config for a given database and is the way to get new connections.
-
- Nov 25, 2019
-
-
Amber Brown authored
-
- Nov 01, 2019
-
-
Richard van der Hoff authored
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy. The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`. The proxy will then be used for * push * url previews * phone-home stats * recaptcha validation * CAS auth validation It will *not* be used for: * Application Services * Identity servers * Outbound federation * In worker configurations, connections from workers to masters Fixes #4198.
-
- Oct 31, 2019
-
-
Erik Johnston authored
-
- Aug 30, 2019
-
-
Andrew Morgan authored
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 :)
-
- Aug 28, 2019
-
-
Amber Brown authored
-
- Jun 20, 2019
-
-
Amber Brown authored
-
- May 13, 2019
-
-
Amber Brown authored
Migrate all tests to use the dict-based config format instead of hanging items off HomeserverConfig (#5171)
-
- May 10, 2019
-
-
Amber Brown authored
-
- Apr 02, 2019
-
-
Richard van der Hoff authored
Hopefully this time we really will fix #4422. We need to make sure that the cache on `get_rooms_for_user_with_stream_ordering` is invalidated *before* the SyncHandler is notified for the new events, and we can now do so reliably via the `events` stream.
-
- Mar 20, 2019
-
-
Richard van der Hoff authored
Rather than stubbing out the access_log, make it actually log the requests, which makes it a lot more obvious what is going on during tests.
-
- Mar 04, 2019
-
-
Richard van der Hoff authored
-
- Jan 30, 2019
-
-
Richard van der Hoff authored
-
- Jan 29, 2019
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
two reasons for this. One, it saves a bunch of boilerplate. Two, it squashes unicode to IDNA-in-a-`str` (even on python 3) in a way that it turns out we rely on to give consistent behaviour between python 2 and 3.
-
- Jan 23, 2019
-
-
Richard van der Hoff authored
-
- Jan 22, 2019
-
-
Richard van der Hoff authored
-
- Dec 21, 2018
-
-
Amber Brown authored
-
- Nov 15, 2018
-
-
Amber Brown authored
-
- Nov 07, 2018
-
-
Amber Brown authored
-
- Nov 06, 2018
-
-
Amber Brown authored
-
- Nov 05, 2018
-
-
Amber Brown authored
-