diff options
author | Erik Johnston <erik@matrix.org> | 2019-02-14 18:16:32 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-02-14 18:16:32 +0000 |
commit | cb12a377082f2241ee8a8280810e9e38fb69778d (patch) | |
tree | 4382ffda174e3eee6d0724396499b20ab68bc499 /tests | |
parent | Only fetch aliases when publishing rooms (diff) | |
download | synapse-cb12a377082f2241ee8a8280810e9e38fb69778d.tar.xz |
Clarify and fix behaviour when there are multiple aliases
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config/test_room_directory.py | 6 |
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"], + )) |