test: ensure emqx_dashboard tables are created for data export import
This commit is contained in:
parent
25b6a1c158
commit
6d943181d7
|
@ -32,6 +32,8 @@ init_per_suite(Cfg) ->
|
||||||
ok = emqx_dashboard_admin:mnesia(boot),
|
ok = emqx_dashboard_admin:mnesia(boot),
|
||||||
application:load(emqx_modules),
|
application:load(emqx_modules),
|
||||||
application:load(emqx_bridge_mqtt),
|
application:load(emqx_bridge_mqtt),
|
||||||
|
ekka_mnesia:start(),
|
||||||
|
emqx_dashboard_admin:mnesia(boot),
|
||||||
emqx_ct_helpers:start_apps([emqx_rule_engine, emqx_management]),
|
emqx_ct_helpers:start_apps([emqx_rule_engine, emqx_management]),
|
||||||
application:ensure_all_started(emqx_dashboard),
|
application:ensure_all_started(emqx_dashboard),
|
||||||
Cfg.
|
Cfg.
|
||||||
|
@ -185,4 +187,4 @@ remove_resources() ->
|
||||||
lists:foreach(fun(#resource{id = Id}) ->
|
lists:foreach(fun(#resource{id = Id}) ->
|
||||||
emqx_rule_engine:delete_resource(Id)
|
emqx_rule_engine:delete_resource(Id)
|
||||||
end, emqx_rule_registry:get_resources()),
|
end, emqx_rule_registry:get_resources()),
|
||||||
timer:sleep(500).
|
timer:sleep(500).
|
||||||
|
|
Loading…
Reference in New Issue