mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 22:24:55 -04:00
Make search statement in List Room and User Admin API case-insensitive (#8931)
This commit is contained in:
parent
ff5c4da128
commit
06006058d7
7 changed files with 125 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue