Skip to content

Commit

Permalink
test: fix test case example code to follow spec non-normative examples
Browse files Browse the repository at this point in the history
  • Loading branch information
zmstone committed Aug 20, 2024
1 parent 72f65c9 commit 6027a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/emqtt_kerberos_auth_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ auth_handle(#{step := 2,
end.

props(Data) ->
#{'Authentication-Method' => <<"GSSAPI-KERBEROS">>,
#{'Authentication-Method' => <<"GS2-KRB5">>,
'Authentication-Data' => Data
}.

Expand Down Expand Up @@ -165,7 +165,7 @@ t_bad_method_name(Config) ->
{ok, ClientHandle} = sasl_auth:client_new(<<"mqtt">>, ServerFQDN, ServerPrincipal, <<"krb_authn_cli">>),
{ok, {sasl_continue, FirstClientToken}} = sasl_auth:client_start(ClientHandle),
InitialProps0 = props(FirstClientToken),
%% the expected method is GSSAPI-KERBEROS, using "KERBEROS" should immediately result in a rejection
%% the expected method is GS3-KRB5, using "KERBEROS" should immediately result in a rejection
InitialProps = InitialProps0#{'Authentication-Method' => <<"KERBEROS">>},
State = #{client_handle => ClientHandle, step => 1},
{InitialProps, State}
Expand Down

0 comments on commit 6027a9d

Please sign in to comment.