summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-12-10 07:17:28 -0500
committerGitHub <noreply@github.com>2021-12-10 07:17:28 -0500
commit9562f0c2f1bd3489bfbb64fddbbd21ed657b44dd (patch)
tree89c60cececaf4b4c83784f814b840ad61d5e3baa /tests
parentDo not allow cross-room relations, per MSC2674. (#11516) (diff)
downloadsynapse-9562f0c2f1bd3489bfbb64fddbbd21ed657b44dd.tar.xz
Ensure emails are canonicalized before fetching associated user. (#11547)
This should fix pushers with an email in non-canonical form is used as
the pushkey.
Diffstat (limited to 'tests')
-rw-r--r--tests/rest/admin/test_user.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py
index 294d429ce1..eea675991c 100644
--- a/tests/rest/admin/test_user.py
+++ b/tests/rest/admin/test_user.py
@@ -1550,7 +1550,8 @@ class UserRestTestCase(unittest.HomeserverTestCase):
         # Create user
         body = {
             "password": "abc123",
-            "threepids": [{"medium": "email", "address": "bob@bob.bob"}],
+            # Note that the given email is not in canonical form.
+            "threepids": [{"medium": "email", "address": "Bob@bob.bob"}],
         }
 
         channel = self.make_request(