From 213d6416b6347780ac36a7080e8a0951b4b1a88c Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 28 Nov 2023 16:26:44 +0100 Subject: [PATCH] test:permissions: update sso url and credentials structure --- src/tests/test_permission.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test_permission.py b/src/tests/test_permission.py index 7487ba023..ce7ccf174 100644 --- a/src/tests/test_permission.py +++ b/src/tests/test_permission.py @@ -355,7 +355,7 @@ def check_permission_for_apps(): def can_access_webpage(webpath, logged_as=None): webpath = webpath.rstrip("/") - sso_url = "https://" + maindomain + "/yunohost/sso/" + sso_url = "https://" + maindomain + "/yunohost/portalapi/login" # Anonymous access if not logged_as: @@ -365,7 +365,7 @@ def can_access_webpage(webpath, logged_as=None): with requests.Session() as session: session.post( sso_url, - data={"user": logged_as, "password": dummy_password}, + data={"credentials": f"{logged_as}:{dummy_password}"}, headers={ "Referer": sso_url, "Content-Type": "application/x-www-form-urlencoded",