summary refs log tree commit diff
path: root/tests/rest/client/v1
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2019-12-16 16:11:55 +0000
committerAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-12-16 16:11:55 +0000
commitbfb95654c97a8d3aa164eff96ecc13755c1c326d (patch)
treeed4b8ff50105d77770898e9e485eb3060996d598 /tests/rest/client/v1
parentExclude rejected state events when calculating state at backwards extrems (#6... (diff)
downloadsynapse-bfb95654c97a8d3aa164eff96ecc13755c1c326d.tar.xz
Add option to allow profile queries without sharing a room (#6523)
Diffstat (limited to 'tests/rest/client/v1')
-rw-r--r--tests/rest/client/v1/test_profile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rest/client/v1/test_profile.py b/tests/rest/client/v1/test_profile.py
index 12c5e95cb5..8df58b4a63 100644
--- a/tests/rest/client/v1/test_profile.py
+++ b/tests/rest/client/v1/test_profile.py
@@ -237,6 +237,7 @@ class ProfilesRestrictedTestCase(unittest.HomeserverTestCase):
 
         config = self.default_config()
         config["require_auth_for_profile_requests"] = True
+        config["limit_profile_requests_to_users_who_share_rooms"] = True
         self.hs = self.setup_test_homeserver(config=config)
 
         return self.hs
@@ -309,6 +310,7 @@ class OwnProfileUnrestrictedTestCase(unittest.HomeserverTestCase):
     def make_homeserver(self, reactor, clock):
         config = self.default_config()
         config["require_auth_for_profile_requests"] = True
+        config["limit_profile_requests_to_users_who_share_rooms"] = True
         self.hs = self.setup_test_homeserver(config=config)
 
         return self.hs