0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 16:53:53 +01:00
synapse/tests/rest/client
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
..
v1 Merge pull request from GHSA-3x4c-pq33-4w3q 2021-08-31 10:09:58 +01:00
v2_alpha Set room version 8 as preferred for restricted rooms. (#10571) 2021-08-20 07:17:50 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_consent.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_ephemeral_message.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_identity.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_power_levels.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_redactions.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_retention.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_shadow_banned.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_third_party_rules.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_transactions.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00