summary refs log tree commit diff
path: root/tests/storage/test_roommember.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix that user cannot `/forget` rooms after the last member has left (#13546)Dirk Klimpel2022-08-301-2/+2
|
* Add forgotten status to Room Details API (#13503)Dirk Klimpel2022-08-171-0/+70
|
* Don't pull out state in `compute_event_context` for unconflicted state (#13267)Erik Johnston2022-07-141-55/+0
|
* Add some type hints to tests files (#12833)Dirk Klimpel2022-05-231-1/+1
| | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Add type hints to some tests files (#12371)Dirk Klimpel2022-04-051-11/+14
|
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-281-1/+1
|
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-2/+2
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Refactor `tests.util.setup_test_homeserver` and ↵reivilibre2021-12-211-1/+1
| | | | `tests.server.setup_test_homeserver`. (#11503)
* Revert accidental commits to develop.Olivier Wilkinson (reivilibre)2021-12-031-1/+1
|
* Move `tests.utils.setup_test_homeserver` to `tests.server`Olivier Wilkinson (reivilibre)2021-12-031-1/+1
| | | | | | | It had no users. We have just taken the identity of a previous function but don't provide the same behaviour, so we need to fix this in the next commit...
* Change display names/avatar URLs to None if they contain null bytes before ↵Shay2021-11-121-0/+48
| | | | | | | | | | | | | | | storing in DB (#11230) * change display names/avatar URLS to None if they contain null bytes * add changelog * add POC test, requested changes * add a saner test and remove old one * update test to verify that display name has been changed to None * make test less fragile
* Don't drop user dir deltas when server leaves room (#10982)David Robertson2021-10-061-12/+2
| | | | | | | | | Fix a long-standing bug where a batch of user directory changes would be silently dropped if the server left a room early in the batch. * Pull out `wait_for_background_update` in tests Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Flatten the synapse.rest.client package (#10600)reivilibre2021-08-171-1/+1
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Remove redundant mockingRichard van der Hoff2020-12-021-8/+0
|
* Apply an IP range blacklist to push and key revocation requests. (#8821)Patrick Cloke2020-12-021-1/+1
| | | | | | | | | | | | 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).
* Don't instansiate Requester directly (#8614)Erik Johnston2020-10-221-2/+2
|
* Reduce run-times of tests by advancing the reactor less (#7757)Andrew Morgan2020-08-271-3/+3
|
* Add a shadow-banned flag to users. (#8092)Patrick Cloke2020-08-141-1/+1
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-6/+6
|
* Convert the message handler to async/await. (#7884)Patrick Cloke2020-07-221-24/+32
|
* Stop `get_joined_users` corruption from custom statuses (#7376)Richard van der Hoff2020-05-141-1/+49
| | | | | | | | Fix a bug where the `get_joined_users` cache could be corrupted by custom status events (or other state events with a state_key matching the user ID). The bug was introduced by #2229, but has largely gone unnoticed since then. Fixes #7099, #7373.
* Add `local_current_membership` table (#6655)Erik Johnston2020-01-151-1/+1
| | | | | | | Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information.
* Move background update handling out of storeErik Johnston2019-12-051-5/+13
|
* Move DB pool and helper functions into dedicated Database classErik Johnston2019-12-051-1/+1
|
* Remove underscore from SQLBaseStore functionsErik Johnston2019-12-041-1/+1
|
* Implementation of MSC2314 (#6176)Amber Brown2019-11-281-25/+1
|
* Use new EventPersistenceStoreErik Johnston2019-10-231-1/+2
|
* Servers-known-about statistic (#5981)Amber Brown2019-09-071-37/+89
|
* Merge pull request #5746 from matrix-org/erikj/test_bg_update_currnet_stateErik Johnston2019-07-301-1/+36
|\ | | | | Add unit test for current state membership bg update
| * Add unit test for current state membership bg updateErik Johnston2019-07-231-1/+36
| |
* | Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
|/
* Run Black on the tests again (#5170)Amber Brown2019-05-101-1/+1
|
* Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-011-2/+3
| | | | Collect all the things that make room-versions different to one another into one place, so that it's easier to define new room versions.
* Fix testsErik Johnston2019-01-251-1/+2
|
* Revert "Require event format version to parse or create events"Erik Johnston2019-01-251-2/+1
|
* Fix testsErik Johnston2019-01-241-1/+2
|
* Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2018-08-201-14/+17
|\ | | | | | | erikj/refactor_state_handler
| * Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-1/+1
| |
| * Run black.black2018-08-101-14/+17
| |
* | Fix testsErik Johnston2018-08-091-1/+3
|/
* run isortAmber Brown2018-07-091-4/+4
|
* s/_create_new_client_event/create_new_client_event/Erik Johnston2018-02-061-1/+1
|
* Updates testsErik Johnston2018-02-051-3/+2
|
* Fix unit testsErik Johnston2016-08-261-41/+0
|
* get_room_members is unused nowMark Haines2016-05-161-18/+0
|
* Remove some unused functions (#711)Mark Haines2016-04-081-7/+0
| | | | | | | | * Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want
* Remove dead code left over from presence changesMark Haines2016-03-171-10/+0
|
* Fix flake8 warnings for testsMark Haines2016-02-191-13/+9
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-7/+7
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-12/+2
| | | | setup_test_homeserver function in utils.
* Replace hs.parse_roomid with RoomID.from_stringMark Haines2015-01-231-2/+2
|
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-3/+4
|
* Kill off synapse.api.events.*Erik Johnston2014-12-161-3/+2
|
* Fix some testsErik Johnston2014-12-101-22/+27
|
* Fix room_member storage testErik Johnston2014-11-101-0/+2
|
* Fix a couple more storage testsErik Johnston2014-11-051-9/+15
|
* Also unittest RoomMemberStore's joined_hosts_for_room()Paul "LeoNerd" Evans2014-09-151-0/+48
|
* Use new 'tests.unittest' in new storage level testsPaul "LeoNerd" Evans2014-09-151-1/+1
|
* Initial hack at some RoomMemberStore unit testsPaul "LeoNerd" Evans2014-09-121-0/+109