diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2020-12-17 11:43:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 10:43:37 +0000 |
commit | 06006058d7bf6744078109875cd27f47197aeafa (patch) | |
tree | 914debf5e03d197db2055cda4c004c4750dcf810 /tests/rest/admin/test_room.py | |
parent | Add a maximum size for well-known lookups. (#8950) (diff) | |
download | synapse-06006058d7bf6744078109875cd27f47197aeafa.tar.xz |
Make search statement in List Room and User Admin API case-insensitive (#8931)
Diffstat (limited to 'tests/rest/admin/test_room.py')
-rw-r--r-- | tests/rest/admin/test_room.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rest/admin/test_room.py b/tests/rest/admin/test_room.py index ca20bcad08..014c30287a 100644 --- a/tests/rest/admin/test_room.py +++ b/tests/rest/admin/test_room.py @@ -1050,6 +1050,13 @@ class RoomTestCase(unittest.HomeserverTestCase): _search_test(room_id_2, "else") _search_test(room_id_2, "se") + # Test case insensitive + _search_test(room_id_1, "SOMETHING") + _search_test(room_id_1, "THING") + + _search_test(room_id_2, "ELSE") + _search_test(room_id_2, "SE") + _search_test(None, "foo") _search_test(None, "bar") _search_test(None, "", expected_http_code=400) |