forked from Github-Mirrors/canaille
unit tests: increased well-known coverage
This commit is contained in:
parent
73d6e055d3
commit
56fb83d44d
1 changed files with 8 additions and 0 deletions
|
@ -6,8 +6,16 @@ def test_oauth_authorization_server(testclient):
|
|||
assert "https://auth.mydomain.tld" == res["issuer"]
|
||||
assert res["ui_locales_supported"] == g.available_language_codes
|
||||
|
||||
res = testclient.get("/.well-known/oauth-authorization-server", status=200).json
|
||||
assert "https://auth.mydomain.tld" == res["issuer"]
|
||||
assert res["ui_locales_supported"] == g.available_language_codes
|
||||
|
||||
|
||||
def test_openid_configuration(testclient):
|
||||
res = testclient.get("/.well-known/openid-configuration", status=200).json
|
||||
assert "https://auth.mydomain.tld" == res["issuer"]
|
||||
assert res["ui_locales_supported"] == g.available_language_codes
|
||||
|
||||
res = testclient.get("/.well-known/openid-configuration", status=200).json
|
||||
assert "https://auth.mydomain.tld" == res["issuer"]
|
||||
assert res["ui_locales_supported"] == g.available_language_codes
|
||||
|
|
Loading…
Reference in a new issue