test: add eunit test for schema dump
This commit is contained in:
parent
29a898cc2e
commit
4a336b6b4e
|
@ -0,0 +1,13 @@
|
||||||
|
%%--------------------------------------------------------------------
|
||||||
|
%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved.
|
||||||
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
|
-module(emqx_conf_schema_tests).
|
||||||
|
|
||||||
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
|
|
||||||
|
doc_gen_test() ->
|
||||||
|
Dir = "tmp",
|
||||||
|
ok = filelib:ensure_dir(filename:join("tmp", foo)),
|
||||||
|
_ = emqx_conf:dump_schema(Dir),
|
||||||
|
ok.
|
|
@ -0,0 +1,13 @@
|
||||||
|
%%--------------------------------------------------------------------
|
||||||
|
%% Copyright (c) 2022 EMQ Technologies Co., Ltd. All Rights Reserved.
|
||||||
|
%%--------------------------------------------------------------------
|
||||||
|
|
||||||
|
-module(emqx_enterprise_conf_schema_tests).
|
||||||
|
|
||||||
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
|
|
||||||
|
doc_gen_test() ->
|
||||||
|
Dir = "tmp",
|
||||||
|
ok = filelib:ensure_dir(filename:join("tmp", foo)),
|
||||||
|
_ = emqx_conf:dump_schema(Dir, emqx_enterprise_conf_schema),
|
||||||
|
ok.
|
Loading…
Reference in New Issue