forked-synapse/tests/storage
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
..
__init__.py Reference Matrix Home Server 2014-08-12 15:10:52 +01:00
test__base.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
test_appservice.py Allow configuration of Synapse's cache without using synctl or environment variables (#6391) 2020-05-11 18:45:23 +01:00
test_background_update.py Make do_next_background_update return a bool 2020-03-31 17:43:58 +01:00
test_base.py Add HomeServer.signing_key property (#7805) 2020-07-08 17:51:56 +01:00
test_cleanup_extrems.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
test_client_ips.py Optimise some references to hs.config (#7546) 2020-05-22 21:47:07 +01:00
test_database.py bg update to clear out duplicate outbound_device_list_pokes (#7193) 2020-04-07 23:06:39 +01:00
test_devices.py Remove handling of multiple rows per ID 2020-02-28 11:45:35 +00:00
test_directory.py Fix tests on postgresql (#3740) 2018-09-04 02:21:48 +10:00
test_e2e_room_keys.py add etag and count to key backup endpoints (#5858) 2019-11-27 16:14:44 -05:00
test_end_to_end_keys.py make storage layer in charge of interpreting the device key data 2019-10-10 19:15:30 -04:00
test_event_federation.py Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
test_event_metrics.py Add ability to wait for replication streams (#7542) 2020-05-22 14:21:54 +01:00
test_event_push_actions.py Back out MSC2625 implementation (#7761) 2020-07-01 11:08:25 +01:00
test_id_generators.py Add MultiWriterIdGenerator. (#7281) 2020-05-04 17:17:45 +01:00
test_keys.py Type defintions for use in refactoring for redaction changes (#6803) 2020-01-30 11:25:59 +00:00
test_main.py Return total number of users and profile attributes in admin users endpoint (#6881) 2020-04-28 18:19:36 +01:00
test_monthly_active_users.py Replace instances of reactor pumping with get_success. (#7619) 2020-06-03 16:39:30 +01:00
test_profile.py Fixup tests 2019-12-06 16:02:50 +00:00
test_purge.py Split purge API into events vs state 2019-10-30 15:23:37 +00:00
test_redaction.py Replace _event_dict_property with DictProperty 2020-02-14 16:42:37 +00:00
test_registration.py Allow admin users to create or modify users without a shared secret (#6495) 2020-01-09 13:31:00 +00:00
test_room.py Add delete room admin endpoint (#7613) 2020-07-14 12:36:23 +01:00
test_roommember.py Stop get_joined_users corruption from custom statuses (#7376) 2020-05-14 10:07:54 +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_transactions.py Fix errors storing large retry intervals. 2019-10-02 10:36:27 +01:00
test_user_directory.py Fixup tests 2019-12-06 16:02:50 +00:00