diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-09 13:13:32 +0000 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2021-12-09 13:13:32 +0000 |
commit | 11e2192b3224816578f054a325b2c16ed4a70580 (patch) | |
tree | 6b17d85959659a57cdea7b91d3ce0b3dc60c919b | |
parent | Add an experimental flag to control device masquerading (diff) | |
download | synapse-11e2192b3224816578f054a325b2c16ed4a70580.tar.xz |
Update tests to enable experimental features
-rw-r--r-- | tests/api/test_auth.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py index fe98c6d4dc..3c9ca52922 100644 --- a/tests/api/test_auth.py +++ b/tests/api/test_auth.py @@ -31,6 +31,7 @@ from synapse.types import Requester from tests import unittest from tests.test_utils import simple_async_mock +from tests.unittest import override_config from tests.utils import mock_getRawHeaders @@ -210,6 +211,7 @@ class AuthTestCase(unittest.HomeserverTestCase): request.requestHeaders.getRawHeaders = mock_getRawHeaders() self.get_failure(self.auth.get_user_by_req(request), AuthError) + @override_config({"experimental_features": {"msc3202_device_masquerading": True}}) def test_get_user_by_req_appservice_valid_token_valid_device_id(self): """ Tests that when an application service passes the device_id URL parameter @@ -241,6 +243,7 @@ class AuthTestCase(unittest.HomeserverTestCase): ) self.assertEquals(requester.device_id, masquerading_device_id.decode("utf8")) + @override_config({"experimental_features": {"msc3202_device_masquerading": True}}) def test_get_user_by_req_appservice_valid_token_invalid_device_id(self): """ Tests that when an application service passes the device_id URL parameter |