zhouzb 4 лет назад
Родитель
Сommit
05b72157e2
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      apps/emqx_authn/test/emqx_authn_SUITE.erl

+ 2 - 0
apps/emqx_authn/test/emqx_authn_SUITE.erl

@@ -101,5 +101,7 @@ t_authenticate(_) ->
                    username => <<"myuser">>,
 			       password => <<"mypass">>},
     ?assertEqual(ok, emqx_access_control:authenticate(ClientInfo)),
+    ?assertEqual(false, emqx_authn:is_enabled()),
     emqx_authn:enable(),
+    ?assertEqual(true, emqx_authn:is_enabled()),
     ?assertEqual({error, not_authorized}, emqx_access_control:authenticate(ClientInfo)).