diff options
author | Mathieu Velten <mathieuv@matrix.org> | 2023-08-22 16:47:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 14:47:59 +0000 |
commit | 0ba17777be81ba9457defb407112b664042a14d2 (patch) | |
tree | 3eea0de6202c4686023bce0c08691eb9c9f90342 /tests | |
parent | Add an admin endpoint to allow authorizing server to signal token revocations... (diff) | |
download | synapse-0ba17777be81ba9457defb407112b664042a14d2.tar.xz |
Disable `m.3pid_changes` capability when MSC3861 is enabled. (#16134)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config/test_oauth_delegation.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/config/test_oauth_delegation.py b/tests/config/test_oauth_delegation.py index 35f7b85dc7..5c91031746 100644 --- a/tests/config/test_oauth_delegation.py +++ b/tests/config/test_oauth_delegation.py @@ -271,3 +271,8 @@ class MSC3861OAuthDelegation(TestCase): self.config_dict["session_lifetime"] = "24h" with self.assertRaises(ConfigError): self.parse_config() + + def test_enable_3pid_changes_cannot_be_enabled(self) -> None: + self.config_dict["enable_3pid_changes"] = True + with self.assertRaises(ConfigError): + self.parse_config() |