summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorHugh Nimmo-Smith <hughns@element.io>2023-05-25 13:43:22 +0100
committerHugh Nimmo-Smith <hughns@element.io>2023-05-25 15:48:41 +0100
commit7ed89832f0b4461f83ef8db03c98baf20a75abb6 (patch)
treeaae2fc41754d9576fc234ca806ba6e95dcaa3a4a /tests
parentLint (diff)
downloadsynapse-hughns/remove-unstable-msc3882.tar.xz
Diffstat (limited to 'tests')
-rw-r--r--tests/rest/client/test_login_token_request.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/rest/client/test_login_token_request.py b/tests/rest/client/test_login_token_request.py

index f05e619aa8..3ee8e98c6e 100644 --- a/tests/rest/client/test_login_token_request.py +++ b/tests/rest/client/test_login_token_request.py
@@ -132,37 +132,3 @@ class LoginTokenRequestServletTestCase(unittest.HomeserverTestCase): channel = self.make_request("POST", GET_TOKEN_ENDPOINT, {}, access_token=token) self.assertEqual(channel.code, 200) self.assertEqual(channel.json_body["expires_in_ms"], 15000) - - @override_config( - { - "login_via_existing_session": { - "enabled": True, - "require_ui_auth": False, - "token_timeout": "15s", - } - } - ) - def test_unstable_support(self) -> None: - # TODO: remove support for unstable MSC3882 is no longer needed - - # check feature is advertised in versions response: - channel = self.make_request( - "GET", "/_matrix/client/versions", {}, access_token=None - ) - self.assertEqual(channel.code, 200) - self.assertEqual( - channel.json_body["unstable_features"]["org.matrix.msc3882"], True - ) - - self.register_user(self.user, self.password) - token = self.login(self.user, self.password) - - # check feature is available via the unstable endpoint and returns an expires_in value in seconds - channel = self.make_request( - "POST", - "/_matrix/client/unstable/org.matrix.msc3882/login/token", - {}, - access_token=token, - ) - self.assertEqual(channel.code, 200) - self.assertEqual(channel.json_body["expires_in"], 15)