- Dec 15, 2020
-
-
Richard van der Hoff authored
* move simple_async_mock to test_utils ... so that it can be re-used * Remove references to `SamlHandler._map_saml_response_to_user` from tests This method is going away, so we can no longer use it as a test point. Instead, factor out a higher-level method which takes a SAML object, and verify correct behaviour by mocking out `AuthHandler.complete_sso_login`. * changelog
-
- Dec 02, 2020
-
-
Richard van der Hoff authored
-
- Oct 30, 2020
-
-
Patrick Cloke authored
-
- Sep 08, 2020
-
-
Patrick Cloke authored
-
- Jul 24, 2020
-
-
Patrick Cloke authored
-
- Apr 29, 2020
-
-
Richard van der Hoff authored
* Factor out functions for injecting events into database I want to add some more flexibility to the tools for injecting events into the database, and I don't want to clutter up HomeserverTestCase with them, so let's factor them out to a new file. * Rework TestReplicationDataHandler This wasn't very easy to work with: the mock wrapping was largely superfluous, and it's useful to be able to inspect the received rows, and clear out the received list. * Fix AssertionErrors being thrown by EventsStream Part of the problem was that there was an off-by-one error in the assertion, but also the limit logic was too simple. Fix it all up and add some tests.
-
- Jan 29, 2019
-
-
Richard van der Hoff authored
I got fed up with always adding '@unittest.DEBUG' every time I needed to debug a test.
-
- Jan 22, 2019
-
-
Richard van der Hoff authored
-
- Apr 06, 2016
-
-
Mark Haines authored
Add a test to check that get_room_names_and_aliases does the same thing on both the master and on the slave data store.
-
- Mar 01, 2016
-
-
Mark Haines authored
synapse This is necessary for replicating the data in synapse to be visible to a separate service because presence and typing notifications aren't stored in a database so won't be visible to another process. This API can be used to either get the raw data by requesting the tables themselves or to just receive notifications for updates by following the streams meta-stream. Returns updates for each table requested a JSON array of arrays with a row for each row in the table. Each table is prefixed by a header row with the: name of the table, current stream_id position for the table, number of rows, number of columns and the names of the columns. This is followed by the rows that have been added to the server since the requester last asked. The API has a timeout and is hooked up to the notifier so that a slave can long poll for updates.
-
- Feb 05, 2016
-
-
Daniel Wagner-Hall authored
Currently we store all access tokens in the DB, and fall back to that check if we can't validate the macaroon, so our fallback works here, but for guests, their macaroons don't get persisted, so we don't get to find them in the database. Each restart, we generate a new ephemeral key, so guests lose access after each server restart. I tried to fix up the config stuff to be less insane, but gave up, so instead I bolt on yet another piece of custom one-off insanity. Also, add some basic tests for config generation and loading.
-
- Jan 07, 2016
-
-
Matthew Hodgson authored
-
- Jan 06, 2015
-
-
Mark Haines authored
-
- Oct 30, 2014
-
-
Mark Haines authored
-
- Sep 03, 2014
-
-
Matthew Hodgson authored
fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch.
-
- Aug 13, 2014
-
-
Matthew Hodgson authored
-
- Aug 12, 2014
-
-
matrix.org authored
-