mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
ci: fix test_sso_basic_auth_header now that the default is with-password ?
This commit is contained in:
parent
9e93130672
commit
44920d8914
1 changed files with 3 additions and 3 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue