summary refs log tree commit diff
path: root/tests/rest/client/v1/utils.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert #7736 (#8039)Brendan Abolivier2020-08-061-20/+0
|
* Prevent join->join membership transitions changing member count (#7977)Andrew Morgan2020-08-031-1/+23
| | | | | | | | | | | `StatsHandler` handles updates to the `current_state_delta_stream`, and updates room stats such as the amount of state events, joined users, etc. However, it counts every new join membership as a new user entering a room (and that user being in another room), whereas it's possible for a user's membership status to go from join -> join, for instance when they change their per-room profile information. This PR adds a check for join->join membership transitions, and bails out early, as none of the further checks are necessary at that point. Due to this bug, membership stats in many rooms have ended up being wildly larger than their true values. I am not sure if we also want to include a migration step which recalculates these statistics (possibly using the `_populate_stats_process_rooms` bg update). Bug introduced in the initial implementation https://github.com/matrix-org/synapse/pull/4338.
* Re-implement unread counts (#7736)Brendan Abolivier2020-07-291-0/+20
|
* Fix limit logic for EventsStream (#7358)Richard van der Hoff2020-04-291-1/+1
| | | | | | | | | | | | | | | | | | | * 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.
* Default PL100 to enable encryption in a room (#7230)Andrew Morgan2020-04-091-4/+92
|
* Quarantine media by ID or user ID (#6681)Andrew Morgan2020-01-131-0/+37
|
* Update copyrightsBrendan Abolivier2019-11-051-0/+3
|
* Add integration tests for syncBrendan Abolivier2019-10-301-3/+12
|
* Fix and refactor room and user stats (#5971)Erik Johnston2019-09-041-2/+6
| | | Previously the stats were not being correctly populated.
* Run Black. (#5482)Amber Brown2019-06-201-4/+4
|
* Room Statistics (#4338)Amber Brown2019-05-211-0/+17
|
* Some more porting to HomeserverTestCase and remove old RESTHelper (#4913)Amber Brown2019-03-221-125/+0
|
* Remove some boilerplate in tests (#4156)Amber Brown2018-11-071-15/+7
|
* Port storage/ to Python 3 (#3725)Amber Brown2018-08-311-4/+10
|
* Fix the testsAmber Brown2018-08-151-5/+3
|
* Run black.black2018-08-101-29/+41
|
* Test fixes for Python 3 (#3647)Amber Brown2018-08-091-5/+5
|
* Refactor REST API tests to use explicit reactors (#3351)Amber Brown2018-07-171-2/+113
|
* run isortAmber Brown2018-07-091-5/+5
|
* Linearize updates to membership via PUT /state/Erik Johnston2017-01-091-1/+4
|
* Fix flake8 warnings for testsMark Haines2016-02-191-2/+3
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Attempt to validate macaroonsDaniel Wagner-Hall2015-08-261-3/+0
| | | | | | | | | | | | | A couple of weird caveats: * If we can't validate your macaroon, we fall back to checking that your access token is in the DB, and ignoring the failure * Even if we can validate your macaroon, we still have to hit the DB to get the access token ID, which we pretend is a device ID all over the codebase. This mostly adds the interesting code, and points out the two pieces we need to delete (and necessary conditions) in order to fix the above caveats.
* s/by_token/by_access_token/gDaniel Wagner-Hall2015-08-201-1/+1
| | | | We're about to have two kinds of token, access and refresh
* Move client rest tests back under restMark Haines2015-01-221-0/+134