0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 10:23:53 +01:00
synapse/tests
Dirk Klimpel 491f0dab1b
Add delete room admin endpoint (#7613)
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`.
901b1fa561/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
2020-07-14 12:36:23 +01:00
..
api Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
app Create a ListenerConfig object (#7681) 2020-06-16 12:44:07 +01:00
appservice Refactor the Appservice scheduler code 2019-08-20 11:50:23 +01:00
config Fix specifying cache factors via env vars with * in name. (#7580) 2020-05-27 13:17:01 +01:00
crypto Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
events Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
federation Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
handlers Convert the appservice handler to async/await. (#7775) 2020-07-06 07:40:35 -04:00
http Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
logging Fix for structured logging tests stomping on logs (#6023) 2019-09-13 02:29:55 +10:00
module_api Wrap register_device coroutine in an ensureDeferred (#7684) 2020-06-16 10:13:59 +01:00
push Don't ignore set_tweak actions with no explicit value. (#7766) 2020-07-06 11:43:41 +01:00
replication Support handling registration requests across multiple client readers. (#7830) 2020-07-13 13:31:46 -04:00
rest Add delete room admin endpoint (#7613) 2020-07-14 12:36:23 +01:00
scripts Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
server_notices Optimise some references to hs.config (#7546) 2020-05-22 21:47:07 +01:00
state Yield during large v2 state res. (#7735) 2020-06-24 18:48:18 +01:00
storage Add delete room admin endpoint (#7613) 2020-07-14 12:36:23 +01:00
test_utils isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
util Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
__init__.py Move patch_inline_callbacks into synapse/ 2019-10-10 10:53:06 +01:00
server.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Implement room version 6 (MSC2240). (#7506) 2020-05-15 09:30:10 -04:00
test_federation.py Add option to enable encryption by default for new rooms (#7639) 2020-06-10 17:44:34 +01:00
test_mau.py Fix some spelling mistakes / typos. (#7811) 2020-07-09 09:52:58 -04:00
test_metrics.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
test_phone_home.py Remove the psutil dependency (#6318) 2019-11-05 05:05:48 +11:00
test_preview.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_server.py Merge different Resource implementation classes (#7732) 2020-07-03 19:02:19 +01:00
test_state.py Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
test_terms_auth.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
test_visibility.py Port to use state storage 2019-10-30 14:46:54 +00:00
unittest.py Create a ListenerConfig object (#7681) 2020-06-16 12:44:07 +01:00
utils.py Replace all remaining six usage with native Python 3 equivalents (#7704) 2020-06-16 08:51:47 -04:00