summary refs log tree commit diff
path: root/tests/storage/test_room.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete RoomEventsStoreTestCase (#13200)Petr Vaněk2022-07-071-69/+0
| | | | | | | | | | All tests are prefixed with `STALE_` and therefore they are silently skipped. They were moved to `STALE_` in version `v0.5.0` in commit 2fcce3b3c508 - `Remove stale tests`. Tests from `RoomEventsStoreTestCase` class are not used for last 8 years, I believe the best would be to remove them entirely. Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
* Reduce the amount of state we pull from the DB (#12811)Erik Johnston2022-06-061-4/+8
|
* Rename storage classes (#12913)Erik Johnston2022-05-311-2/+2
|
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-281-2/+2
|
* 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
* [pyupgrade] `tests/` (#10347)Jonathan de Jong2021-07-131-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>`
* Convert storage test cases to HomeserverTestCase. (#9736)Patrick Cloke2021-04-061-44/+17
|
* Convert simple_select_one and simple_select_one_onecol to async (#8162)Patrick Cloke2020-08-261-4/+16
|
* Convert some of the data store to async. (#7976)Patrick Cloke2020-07-301-10/+14
|
* Convert storage layer to async/await. (#7963)Patrick Cloke2020-07-281-2/+4
|
* Convert state resolution to async/await (#7942)Patrick Cloke2020-07-241-2/+6
|
* Add delete room admin endpoint (#7613)Dirk Klimpel2020-07-141-0/+8
| | | | | | | | | | | | | | | | | | The Delete Room admin API allows server admins to remove rooms from server and block these rooms. `DELETE /_synapse/admin/v1/rooms/<room_id>` It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API. Fixes: #6425 It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`. It should return `None` if the room is unknown. But it returns an `IndexError`. https://github.com/matrix-org/synapse/blob/901b1fa561e3cc661d78aa96d59802cf2078cb0d/synapse/storage/data_stores/main/room.py#L99-L105 Related to: - #5575 - https://github.com/Awesome-Technologies/synapse-admin/issues/17 Signed-off-by: Dirk Klimpel dirk@klimpel.org
* Add room details admin endpoint (#7317)Manuel Stahl2020-05-071-0/+11
|
* Add `rooms.room_version` column (#6729)Erik Johnston2020-01-271-1/+6
| | | This is so that we don't have to rely on pulling it out from `current_state_events` table.
* Use new EventPersistenceStoreErik Johnston2019-10-231-1/+2
|
* Run Black. (#5482)Amber Brown2019-06-201-2/+2
|
* Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-2/+2
|
* Run black.black2018-08-101-34/+13
|
* run isortAmber Brown2018-07-091-2/+2
|
* Fix flake8 warnings for testsMark Haines2016-02-191-5/+9
|
* Simplify get_roomsErik Johnston2016-02-031-26/+0
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Return world_readable and guest_can_join in /publicRoomsDaniel Wagner-Hall2015-11-101-0/+2
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-221-1/+1
| | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set.
* Tidy up _simple_... methodsErik Johnston2015-03-201-1/+1
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-14/+3
| | | | setup_test_homeserver function in utils.
* Replace hs.parse_roomalias with RoomAlias.from_stringMark Haines2015-01-231-2/+2
|
* Replace hs.parse_roomid with RoomID.from_stringMark Haines2015-01-231-3/+3
|
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-1/+2
|
* Remove unused functionsMark Haines2015-01-131-11/+0
|
* Kill off synapse.api.events.*Erik Johnston2014-12-161-5/+3
|
* Remove stale testsErik Johnston2014-11-051-2/+2
|
* Neaten more of the storage layer tests with assertObjectHasAttributes; more ↵Paul "LeoNerd" Evans2014-09-171-6/+5
| | | | standardisation on test layout
* Unit tests for (some) room events via the RoomStorePaul "LeoNerd" Evans2014-09-171-0/+85
|
* Use new assertObjectHasAttributes() in tests/storage/test_room.pyPaul "LeoNerd" Evans2014-09-171-3/+6
|
* More RoomStore testsPaul "LeoNerd" Evans2014-09-171-4/+40
|
* Initial pass at a RoomStore testPaul "LeoNerd" Evans2014-09-151-0/+53