test(router): Skip certain tests on OSS
This commit is contained in:
parent
b7c424a13d
commit
b8a2a8ea18
|
@ -79,6 +79,8 @@
|
|||
%% "Unofficial" `emqx_config_handler' and `emqx_conf' APIs
|
||||
-export([schema_module/0, upgrade_raw_conf/1]).
|
||||
|
||||
-export([skip_if_oss/0]).
|
||||
|
||||
-export_type([appspec/0]).
|
||||
-export_type([appspec_opts/0]).
|
||||
|
||||
|
|
|
@ -64,10 +64,17 @@ init_per_group(routing_schema_v2, Config) ->
|
|||
init_per_group(batch_sync_on, Config) ->
|
||||
[{emqx_config, "broker.routing.batch_sync.enable_on = all"} | Config];
|
||||
init_per_group(batch_sync_replicants, Config) ->
|
||||
case emqx_cth_suite:skip_if_oss() of
|
||||
false ->
|
||||
[{emqx_config, "broker.routing.batch_sync.enable_on = replicant"} | Config];
|
||||
True ->
|
||||
True
|
||||
end;
|
||||
init_per_group(batch_sync_off, Config) ->
|
||||
[{emqx_config, "broker.routing.batch_sync.enable_on = none"} | Config];
|
||||
init_per_group(cluster, Config) ->
|
||||
case emqx_cth_suite:skip_if_oss() of
|
||||
false ->
|
||||
WorkDir = emqx_cth_suite:work_dir(Config),
|
||||
NodeSpecs = [
|
||||
{emqx_routing_SUITE1, #{apps => [mk_emqx_appspec(1, Config)], role => core}},
|
||||
|
@ -76,6 +83,9 @@ init_per_group(cluster, Config) ->
|
|||
],
|
||||
Nodes = emqx_cth_cluster:start(NodeSpecs, #{work_dir => WorkDir}),
|
||||
[{cluster, Nodes} | Config];
|
||||
True ->
|
||||
True
|
||||
end;
|
||||
init_per_group(GroupName, Config) when
|
||||
GroupName =:= single_batch_on;
|
||||
GroupName =:= single
|
||||
|
|
Loading…
Reference in New Issue