|
|
@@ -96,14 +96,13 @@ groups() ->
|
|
|
|
|
|
init_per_suite(Config) ->
|
|
|
meck:new(emqx_resource, [non_strict, passthrough, no_history, no_link]),
|
|
|
- meck:expect(emqx_resource, create, fun(_, _, _) -> {ok, meck_data} end),
|
|
|
- meck:expect(emqx_resource, create_dry_run,
|
|
|
+ meck:expect(emqx_resource, create_local, fun(_, _, _) -> {ok, meck_data} end),
|
|
|
+ meck:expect(emqx_resource, create_dry_run_local,
|
|
|
fun(emqx_connector_mysql, _) -> {ok, meck_data};
|
|
|
(T, C) -> meck:passthrough([T, C])
|
|
|
end),
|
|
|
- meck:expect(emqx_resource, update, fun(_, _, _, _) -> {ok, meck_data} end),
|
|
|
meck:expect(emqx_resource, health_check, fun(_) -> ok end),
|
|
|
- meck:expect(emqx_resource, remove, fun(_) -> ok end ),
|
|
|
+ meck:expect(emqx_resource, remove_local, fun(_) -> ok end ),
|
|
|
|
|
|
ok = emqx_common_test_helpers:start_apps(
|
|
|
[emqx_conf, emqx_authz, emqx_dashboard],
|