test(mria): Remove role from the example config

This commit is contained in:
ieQu1 2024-07-26 16:22:57 +02:00
parent 9da744c423
commit 1beda1cd11
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
3 changed files with 20 additions and 3 deletions

View File

@ -519,3 +519,14 @@ upgrade_raw_conf(Conf) ->
ce -> ce ->
emqx_conf_schema:upgrade_raw_conf(Conf) emqx_conf_schema:upgrade_raw_conf(Conf)
end. end.
skip_if_oss() ->
try emqx_release:edition() of
ee ->
false;
_ ->
{skip, not_supported_in_oss}
catch
error:undef ->
{skip, standalone_not_supported}
end.

View File

@ -22,7 +22,13 @@
-include_lib("common_test/include/ct.hrl"). -include_lib("common_test/include/ct.hrl").
all() -> all() ->
emqx_common_test_helpers:all(?MODULE). All = emqx_common_test_helpers:all(?MODULE),
case emqx_cth_suite:skip_if_oss() of
false ->
All;
_ ->
All -- [t_autocluster_leave]
end.
init_per_suite(Config) -> init_per_suite(Config) ->
Apps = emqx_cth_suite:start( Apps = emqx_cth_suite:start(

View File

@ -11,11 +11,11 @@ node {
## Secret cookie is a random string that should be the same on all nodes in the cluster, but unique per EMQX cluster ## Secret cookie is a random string that should be the same on all nodes in the cluster, but unique per EMQX cluster
cookie = "Yzc0NGExM2Rj" cookie = "Yzc0NGExM2Rj"
## Select a node role ## Select a node role (Enterprise Edition feature)
## Possible values: ## Possible values:
## - core: This is a core node which provides durability of the client states, and takes care of writes ## - core: This is a core node which provides durability of the client states, and takes care of writes
## - replicant: This is a stateless worker node ## - replicant: This is a stateless worker node
role = core ## role = core
## Maximum number of simultaneously existing processes for this Erlang system ## Maximum number of simultaneously existing processes for this Erlang system
process_limit = 2097152 process_limit = 2097152