test(ds): Fix emqx standalone test profile selection
This commit is contained in:
parent
8aa27488b6
commit
d7d878fd43
|
@ -32,13 +32,22 @@
|
|||
all() ->
|
||||
emqx_common_test_helpers:all(?MODULE).
|
||||
|
||||
%% Needed for standalone mode:
|
||||
-ifndef(EMQX_RELEASE_EDITION).
|
||||
-define(EMQX_RELEASE_EDITION, ce).
|
||||
-endif.
|
||||
|
||||
-if(?EMQX_RELEASE_EDITION == ee).
|
||||
|
||||
init_per_suite(Config) ->
|
||||
case emqx_ds_test_helpers:skip_if_norepl() of
|
||||
false ->
|
||||
Config;
|
||||
Yes ->
|
||||
Yes
|
||||
end.
|
||||
Config.
|
||||
|
||||
-else.
|
||||
|
||||
init_per_suite(Config) ->
|
||||
{skip, no_replication}.
|
||||
|
||||
-endif.
|
||||
|
||||
end_per_suite(_Config) ->
|
||||
ok.
|
||||
|
|
|
@ -20,7 +20,7 @@ EEDeps =
|
|||
],
|
||||
case Profile of
|
||||
ee ->
|
||||
{deps, CEDeps ++ EEDeps};
|
||||
[{deps, CEDeps ++ EEDeps}];
|
||||
ce ->
|
||||
{deps, CEDeps}
|
||||
[{deps, CEDeps}]
|
||||
end.
|
||||
|
|
|
@ -27,6 +27,8 @@ all() ->
|
|||
emqx_common_test_helpers:all(?MODULE).
|
||||
|
||||
init_per_suite(Config) ->
|
||||
case emqx_ds_test_helpers:skip_if_norepl() of
|
||||
false ->
|
||||
Apps = emqx_cth_suite:start(
|
||||
[
|
||||
{emqx, "durable_sessions.enable = true"},
|
||||
|
@ -36,7 +38,10 @@ init_per_suite(Config) ->
|
|||
#{work_dir => emqx_cth_suite:work_dir(Config)}
|
||||
),
|
||||
{ok, _} = emqx_common_test_http:create_default_app(),
|
||||
[{suite_apps, Apps} | Config].
|
||||
[{suite_apps, Apps} | Config];
|
||||
Yes ->
|
||||
Yes
|
||||
end.
|
||||
|
||||
end_per_suite(Config) ->
|
||||
ok = emqx_cth_suite:stop(?config(suite_apps, Config)).
|
||||
|
|
Loading…
Reference in New Issue