From 36dbbde837309c8d235f105687d08dd5db70b0d1 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Mon, 19 Sep 2022 10:17:02 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85(back)=20fix=20encoded=20JWT=20used=20?= =?UTF-8?q?in=20test=20suite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The last pyjwt update fix an issue related to headers disorered. This fix changing the header order, the header hash is changing, so the signature is changing too. To fix this we have to update encoded JWT in our test. See https://github.com/jpadilla/pyjwt/pull/721 --- src/backend/marsha/core/tests/test_api_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/marsha/core/tests/test_api_video.py b/src/backend/marsha/core/tests/test_api_video.py index f33b5668aa..815a19957e 100644 --- a/src/backend/marsha/core/tests/test_api_video.py +++ b/src/backend/marsha/core/tests/test_api_video.py @@ -4439,11 +4439,11 @@ def test_api_video_instructor_initiate_jitsi_live_with_token(self): "interface_config_overwrite": {}, "room_name": str(video.pk), "token": ( - "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9." + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9." "eyJleHAiOjE2NTE2MjMwMDAsImlhdCI6MTY1MTYyMjQwMCwibW9kZXJhdG9yIjp0cnVl" "LCJhdWQiOiJqaXRzaSIsImlzcyI6ImppdHNpX2FwcF9pZCIsInN1YiI6Im1lZXQuaml0" "LnNpIiwicm9vbSI6IjI3YTIzZjUyLTMzNzktNDZhMi05NGZhLTY5N2I1OWNmZTNjNyJ9" - ".LpHprY_P63wuKiIasYNev_LJmQJsPAWEfo0qz6MwoGc" + ".XHsCRoAAGC4jp-hj80LGE8tNOi3V3efgPcqcXuBKHJI" ), } },