MatrixSynapse/tests
reivilibre 52c7a51cfc
Merge pull request from GHSA-3x4c-pq33-4w3q
* Add some tests to characterise the problem

Some failing. Current states:

  RoomsMemberListTestCase
test_get_member_list ...
[OK]
test_get_member_list_mixed_memberships ...
[OK]
test_get_member_list_no_permission ...
[OK]
test_get_member_list_no_permission_former_member ...
[OK]
test_get_member_list_no_permission_former_member_with_at_token ...
[FAIL]
test_get_member_list_no_room ...
[OK]
test_get_member_list_no_permission_with_at_token ...
[FAIL]

* Correct the tests

* Check user is/was member before divulging room membership

* Pull out only the 1 membership event we want.

* Update tests/rest/client/v1/test_rooms.py

Co-authored-by: Erik Johnston <erik@matrix.org>

* Fixup tests (following apply review suggestion)

Co-authored-by: Erik Johnston <erik@matrix.org>
2021-08-31 10:09:58 +01:00
..
api
app Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
appservice
config Allow using several custom template directories (#10587) 2021-08-17 10:23:14 +00:00
crypto
events Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
federation Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
handlers Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
http support federation queries through http connect proxy (#10475) 2021-08-11 15:34:59 +01:00
logging
module_api Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
push Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
replication Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
rest Merge pull request from GHSA-3x4c-pq33-4w3q 2021-08-31 10:09:58 +01:00
scripts
server_notices Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
state
storage Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_utils
util
__init__.py
server.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
test_distributor.py
test_event_auth.py Support MSC3289: Room version 8 (#10449) 2021-08-09 10:46:39 +02:00
test_federation.py Clean up federation event auth code (#10539) 2021-08-06 13:54:23 +01:00
test_mau.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_metrics.py
test_phone_home.py
test_preview.py Support underscores (in addition to hyphens) for charset detection. (#10410) 2021-07-27 17:29:42 +00:00
test_server.py
test_state.py
test_terms_auth.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_test_utils.py
test_types.py
test_visibility.py
unittest.py
utils.py Allow setting transaction limit for db connections (#10440) 2021-08-02 13:24:43 +00:00