Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcialRosales committed Sep 19, 2024
1 parent b9f9162 commit dd60788
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ test_with_endpoint_params(_) ->
#{ <<"resource">> := <<"some-resource">>} =
translate_endpoint_params("authorization_endpoint_params", Conf).

test_invalid_oauth_providers_endpoint_params() ->
test_invalid_oauth_providers_endpoint_params(_) ->
try oauth2_schema:translate_oauth_providers([
{["auth_oauth2","oauth_providers", "X", "discovery_endpoint_params"], ""}]) of
_ -> {throw, should_have_failed}
catch
_ -> ok
end.

test_without_oauth_providers_with_endpoint_params(_) ->
Conf = [
{["auth_oauth2","oauth_providers", "A", "discovery_endpoint_params","param1"], "some-value1"},
Expand Down

0 comments on commit dd60788

Please sign in to comment.