Skip to content

Commit

Permalink
Rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
onno-vos-dev committed Sep 20, 2024
1 parent 82b2198 commit 33608f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aws_rds_iam_token.erl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-module(aws_rds_iam_token).
-export([create/4]).
-export([rds_token_create/4]).

-define(SIGNING_ID, <<"rds-db">>).
-define(EMPTY_PAYLOAD_HASH, <<"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855">>).

%%====================================================================
%% API
%%====================================================================
-spec create(aws_client:client(), binary(), non_neg_integer(), binary()) -> {ok, binary()}.
create(Client, DBEndpoint, DBPort, DBUser) when is_map(Client) andalso
-spec rds_token_create(aws_client:client(), binary(), non_neg_integer(), binary()) -> {ok, binary()}.
rds_token_create(Client, DBEndpoint, DBPort, DBUser) when is_map(Client) andalso
is_binary(DBEndpoint) andalso
is_integer(DBPort) andalso
is_binary(DBUser) ->
Expand Down Expand Up @@ -46,7 +46,7 @@ create(Client, DBEndpoint, DBPort, DBUser) when is_map(Client) andalso
fetch_auth_token_test() ->
Client = aws_client:make_temporary_client(<<"AccessKeyID">>, <<"SecretAccessKey">>,
<<"Token">>, <<"eu-west-1">>),
{ok, Url} = create(Client, <<"db_endpoint">>, 5432, <<"db_user">>),
{ok, Url} = rds_token_create(Client, <<"db_endpoint">>, 5432, <<"db_user">>),
HackneyUrl = hackney_url:parse_url(Url),
ParsedQs = hackney_url:parse_qs(HackneyUrl#hackney_url.qs),
Credential = proplists:get_value(<<"X-Amz-Credential">>, ParsedQs),
Expand Down

0 comments on commit 33608f4

Please sign in to comment.