mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): use configured letter case for SSH fingerprints
Currently, the config parser converts all keys to lowercase which is inconsistent with the old PHP behavior. This has been fixed and relevant fingerprint-getting functions have been simplified without changes in behavior. Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
parent
7bfc2bf9b4
commit
08068e0a5c
3 changed files with 8 additions and 12 deletions
|
@ -96,7 +96,9 @@ def test_homepage_ssh_fingerprints(get_ssh_fingerprints_mock):
|
|||
with client as request:
|
||||
response = request.get("/")
|
||||
|
||||
assert list(fingerprints.values())[0] in response.content.decode()
|
||||
for key, value in fingerprints.items():
|
||||
assert key in response.content.decode()
|
||||
assert value in response.content.decode()
|
||||
assert 'The following SSH fingerprints are used for the AUR' in response.content.decode()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue