fix: fix typos

This commit is contained in:
firest 2024-06-06 11:18:00 +08:00
parent ae0379f974
commit d4118c6e8e
3 changed files with 4 additions and 4 deletions

View File

@ -908,7 +908,7 @@ test_columns('client.check_authn_complete') ->
[ [
{<<"clientid">>, [<<"c_emqx">>, <<"the clientid if the client">>]}, {<<"clientid">>, [<<"c_emqx">>, <<"the clientid if the client">>]},
{<<"username">>, [<<"u_emqx">>, <<"the username if the client">>]}, {<<"username">>, [<<"u_emqx">>, <<"the username if the client">>]},
{<<"reason_code">>, [<<"sucess">>, <<"the reason code">>]}, {<<"reason_code">>, [<<"success">>, <<"the reason code">>]},
{<<"is_superuser">>, [true, <<"Whether this is a superuser">>]}, {<<"is_superuser">>, [true, <<"Whether this is a superuser">>]},
{<<"is_anonymous">>, [false, <<"Whether this is a superuser">>]} {<<"is_anonymous">>, [false, <<"Whether this is a superuser">>]}
]; ];
@ -1087,7 +1087,7 @@ columns_with_exam('client.check_authn_complete') ->
{<<"clientid">>, <<"c_emqx">>}, {<<"clientid">>, <<"c_emqx">>},
{<<"username">>, <<"u_emqx">>}, {<<"username">>, <<"u_emqx">>},
{<<"peername">>, <<"192.168.0.10:56431">>}, {<<"peername">>, <<"192.168.0.10:56431">>},
{<<"reason_code">>, <<"sucess">>}, {<<"reason_code">>, <<"success">>},
{<<"is_superuser">>, true}, {<<"is_superuser">>, true},
{<<"is_anonymous">>, false}, {<<"is_anonymous">>, false},
{<<"timestamp">>, erlang:system_time(millisecond)}, {<<"timestamp">>, erlang:system_time(millisecond)},

View File

@ -273,7 +273,7 @@ t_rule_test_smoke(_Config) ->
#{ #{
<<"clientid">> => <<"c_emqx">>, <<"clientid">> => <<"c_emqx">>,
<<"event_type">> => <<"client_check_authn_complete">>, <<"event_type">> => <<"client_check_authn_complete">>,
<<"reason_code">> => <<"sucess">>, <<"reason_code">> => <<"success">>,
<<"is_superuser">> => true, <<"is_superuser">> => true,
<<"is_anonymous">> => false, <<"is_anonymous">> => false,
<<"username">> => <<"u_emqx">> <<"username">> => <<"u_emqx">>

View File

@ -206,7 +206,7 @@ t_ctx_check_authn_complete(_) ->
#{ #{
clientid => <<"c_emqx">>, clientid => <<"c_emqx">>,
event_type => client_check_authn_complete, event_type => client_check_authn_complete,
reason_code => <<"sucess">>, reason_code => <<"success">>,
is_superuser => true, is_superuser => true,
is_anonymous => false is_anonymous => false
}, },