chore: change community to opensource

This commit is contained in:
Zhongwen Deng 2022-09-05 14:26:53 +08:00
parent d447659365
commit 57cc880977
4 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
{id, "emqx_machine"}, {id, "emqx_machine"},
{description, "The EMQX Machine"}, {description, "The EMQX Machine"},
% strict semver, bump manually! % strict semver, bump manually!
{vsn, "0.1.0"}, {vsn, "0.1.1"},
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{applications, [kernel, stdlib]}, {applications, [kernel, stdlib]},

View File

@ -558,5 +558,5 @@ table_size(Tab) -> ets:info(Tab, size).
edition() -> edition() ->
case emqx_release:edition() of case emqx_release:edition() of
ee -> <<"enterprise">>; ee -> <<"enterprise">>;
ce -> <<"community">> ce -> <<"opensource">>
end. end.

View File

@ -219,8 +219,8 @@ fields(node_info) ->
)}, )},
{edition, {edition,
mk( mk(
enum([community, enterprise]), enum([opensource, enterprise]),
#{desc => <<"Release edition">>, example => "community"} #{desc => <<"Release edition">>, example => "opensource"}
)}, )},
{sys_path, {sys_path,
mk( mk(

View File

@ -60,7 +60,7 @@ t_nodes_api(_) ->
Edition = maps:get(<<"edition">>, LocalNodeInfo), Edition = maps:get(<<"edition">>, LocalNodeInfo),
case emqx_release:edition() of case emqx_release:edition() of
ee -> ?assertEqual(<<"enterprise">>, Edition); ee -> ?assertEqual(<<"enterprise">>, Edition);
ce -> ?assertEqual(<<"community">>, Edition) ce -> ?assertEqual(<<"opensource">>, Edition)
end, end,
NodePath = emqx_mgmt_api_test_util:api_path(["nodes", atom_to_list(node())]), NodePath = emqx_mgmt_api_test_util:api_path(["nodes", atom_to_list(node())]),