From 44920d89146270786600d4b9daf4311efff846bb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 5 Aug 2024 22:11:58 +0200 Subject: [PATCH] ci: fix test_sso_basic_auth_header now that the default is with-password ? --- src/tests/test_sso_and_portalapi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/test_sso_and_portalapi.py b/src/tests/test_sso_and_portalapi.py index e03162482..17c19119d 100644 --- a/src/tests/test_sso_and_portalapi.py +++ b/src/tests/test_sso_and_portalapi.py @@ -279,13 +279,13 @@ def test_sso_basic_auth_header(): assert r.status_code == 200 and r.content.decode().strip() == "User: None\nPwd: None" r = request(f"https://{maindomain}/show-auth", logged_as="alice") - assert r.status_code == 200 and r.content.decode().strip() == "User: alice\nPwd: -" + assert r.status_code == 200 and r.content.decode().strip() == f"User: alice\nPwd: {dummy_password}" - app_setting("hellopy", "auth_header", value="basic-with-password") + app_setting("hellopy", "auth_header", value="basic-without-password") app_ssowatconf() r = request(f"https://{maindomain}/show-auth", logged_as="alice") - assert r.status_code == 200 and r.content.decode().strip() == f"User: alice\nPwd: {dummy_password}" + assert r.status_code == 200 and r.content.decode().strip() == f"User: alice\nPwd: -" def test_sso_basic_auth_header_spoofing():