From dd60788fab775d9d529551b06f447f2bd28a56c0 Mon Sep 17 00:00:00 2001 From: Marcial Rosales Date: Thu, 19 Sep 2024 09:36:47 +0200 Subject: [PATCH] Fix test --- deps/rabbitmq_auth_backend_oauth2/test/oauth2_schema_SUITE.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/rabbitmq_auth_backend_oauth2/test/oauth2_schema_SUITE.erl b/deps/rabbitmq_auth_backend_oauth2/test/oauth2_schema_SUITE.erl index 0e891d54a9f6..7c7afa37f41f 100644 --- a/deps/rabbitmq_auth_backend_oauth2/test/oauth2_schema_SUITE.erl +++ b/deps/rabbitmq_auth_backend_oauth2/test/oauth2_schema_SUITE.erl @@ -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"},