test(authn,authz): fix create function

This commit is contained in:
EMQ-YangM 2022-02-14 14:10:10 +08:00
parent 79badcb403
commit 75b2963efc
6 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,7 @@ init_per_suite(Config) ->
ok = start_apps([emqx_resource, emqx_connector]),
{ok, _} = emqx_resource:create_local(
?MYSQL_RESOURCE,
?RESOURCE_GROUP,
emqx_connector_mysql,
mysql_config()),
Config;

View File

@ -60,6 +60,7 @@ init_per_suite(Config) ->
ok = start_apps([emqx_resource, emqx_connector]),
{ok, _} = emqx_resource:create_local(
?PGSQL_RESOURCE,
?RESOURCE_GROUP,
emqx_connector_pgsql,
pgsql_config()),
Config;

View File

@ -59,6 +59,7 @@ init_per_suite(Config) ->
ok = start_apps([emqx_resource, emqx_connector]),
{ok, _} = emqx_resource:create_local(
?REDIS_RESOURCE,
?RESOURCE_GROUP,
emqx_connector_redis,
redis_config()),
Config;

View File

@ -43,6 +43,7 @@ init_per_suite(Config) ->
ok = start_apps([emqx_resource, emqx_connector]),
{ok, _} = emqx_resource:create_local(
?MYSQL_RESOURCE,
?RESOURCE_GROUP,
emqx_connector_mysql,
mysql_config()),
Config;

View File

@ -43,6 +43,7 @@ init_per_suite(Config) ->
ok = start_apps([emqx_resource, emqx_connector]),
{ok, _} = emqx_resource:create_local(
?PGSQL_RESOURCE,
?RESOURCE_GROUP,
emqx_connector_pgsql,
pgsql_config()),
Config;

View File

@ -44,6 +44,7 @@ init_per_suite(Config) ->
ok = start_apps([emqx_resource, emqx_connector]),
{ok, _} = emqx_resource:create_local(
?REDIS_RESOURCE,
?RESOURCE_GROUP,
emqx_connector_redis,
redis_config()),
Config;