summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-14 18:16:32 +0000
committerErik Johnston <erik@matrix.org>2019-02-14 18:16:32 +0000
commitcb12a377082f2241ee8a8280810e9e38fb69778d (patch)
tree4382ffda174e3eee6d0724396499b20ab68bc499 /tests
parentOnly fetch aliases when publishing rooms (diff)
downloadsynapse-cb12a377082f2241ee8a8280810e9e38fb69778d.tar.xz
Clarify and fix behaviour when there are multiple aliases
Diffstat (limited to 'tests')
-rw-r--r--tests/config/test_room_directory.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/config/test_room_directory.py b/tests/config/test_room_directory.py
index 1d4ca0055c..3dc2631523 100644
--- a/tests/config/test_room_directory.py
+++ b/tests/config/test_room_directory.py
@@ -138,3 +138,9 @@ class RoomDirectoryConfigTestCase(unittest.TestCase):
             room_id="!test-deny",
             aliases=[],
         ))
+
+        self.assertTrue(rd_config.is_publishing_room_allowed(
+            user_id="@test:example.com",
+            room_id="!test",
+            aliases=["#unofficial_st:example.com", "#blah:example.com"],
+        ))