test(ci): clean config after test
Trying to fix this error for profile `emqx`: ``` =CRASH REPORT==== 30-Nov-2022::13:25:46.763989 === crasher: initial call: application_master:init/4 pid: <0.9682.1> registered_name: [] exception exit: {bad_return, {{emqx_conf_app,start,[normal,[]]}, {emqx_conf_schema, [#{kind => validation_error,path => "bridges", reason => unknown_fields, unknown => <<"influxdb_api_v1">>, unmatched => <<"mqtt,webhook">>}]}}} in function application_master:init/4 (application_master.erl, line 142) ancestors: [<0.9681.1>] message_queue_len: 1 messages: [{'EXIT',<0.9683.1>,normal}] links: [<0.9681.1>,<0.44.0>] dictionary: [] trap_exit: true status: running heap_size: 610 stack_size: 29 reductions: 195 neighbours: =INFO REPORT==== 30-Nov-2022::13:25:46.777895 === application: emqx_conf exited: {bad_return, {{emqx_conf_app,start,[normal,[]]}, {emqx_conf_schema, [#{kind => validation_error,path => "bridges", reason => unknown_fields, unknown => <<"influxdb_api_v1">>, unmatched => <<"mqtt,webhook">>}]}}} type: temporary %%% emqx_plugins_SUITE ==> init_per_suite: FAILED %%% emqx_plugins_SUITE ==> {{failed_to_start_app,emqx_conf, {emqx_conf, {bad_return, {{emqx_conf_app,start,[normal,[]]}, {emqx_conf_schema, [#{kind => validation_error,path => "bridges", reason => unknown_fields, unknown => <<"influxdb_api_v1">>, unmatched => <<"mqtt,webhook">>}]}}}}}, [{emqx_common_test_helpers,start_app,4, [{file, "/__w/emqx/emqx/source/apps/emqx/test/emqx_common_test_helpers.erl"}, {line,227}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1342}]}, {emqx_plugins_SUITE,init_per_suite,1, [{file, "/__w/emqx/emqx/source/apps/emqx_plugins/test/emqx_plugins_SUITE.erl"}, {line,34}]}, {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]}, {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1380}]}, {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1224}]}]} %%% emqx_plugins_SUITE ==> t_bad_info_json: SKIPPED %%% emqx_plugins_SUITE ==> {tc_auto_skip, {failed, {emqx_plugins_SUITE,init_per_suite, {'EXIT', {{failed_to_start_app,emqx_conf, {emqx_conf, {bad_return, {{emqx_conf_app,start,[normal,[]]}, {emqx_conf_schema, [#{kind => validation_error, path => "bridges", reason => unknown_fields, unknown => <<"influxdb_api_v1">>, unmatched => <<"mqtt,webhook">>}]}}}}}, [{emqx_common_test_helpers,start_app,4, [{file, "/__w/emqx/emqx/source/apps/emqx/test/emqx_common_test_helpers.erl"}, {line,227}]}, {lists,foreach,2,[{file,"lists.erl"},{line,1342}]}, {emqx_plugins_SUITE,init_per_suite,1, [{file, "/__w/emqx/emqx/source/apps/emqx_plugins/test/emqx_plugins_SUITE.erl"}, {line,34}]}, {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]}, {test_server,run_test_case_eval1,6, [{file,"test_server.erl"},{line,1380}]}, {test_server,run_test_case_eval,9, [{file,"test_server.erl"},{line,1224}]}]}}}}} ```
This commit is contained in:
parent
34e9056779
commit
c69022f3c4
|
@ -53,7 +53,6 @@
|
||||||
T == mysql;
|
T == mysql;
|
||||||
T == influxdb_api_v1;
|
T == influxdb_api_v1;
|
||||||
T == influxdb_api_v2
|
T == influxdb_api_v2
|
||||||
%% T == influxdb_udp
|
|
||||||
).
|
).
|
||||||
|
|
||||||
load() ->
|
load() ->
|
||||||
|
|
|
@ -53,6 +53,7 @@ init_per_suite(Config) ->
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
end_per_suite(_Config) ->
|
end_per_suite(_Config) ->
|
||||||
|
delete_all_bridges(),
|
||||||
ok = emqx_common_test_helpers:stop_apps([emqx_conf]),
|
ok = emqx_common_test_helpers:stop_apps([emqx_conf]),
|
||||||
ok = emqx_connector_test_helpers:stop_apps([emqx_bridge, emqx_resource]),
|
ok = emqx_connector_test_helpers:stop_apps([emqx_bridge, emqx_resource]),
|
||||||
_ = application:stop(emqx_connector),
|
_ = application:stop(emqx_connector),
|
||||||
|
@ -222,8 +223,6 @@ end_per_group(_Group, _Config) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
init_per_testcase(_Testcase, Config) ->
|
init_per_testcase(_Testcase, Config) ->
|
||||||
%% catch clear_db(Config),
|
|
||||||
%% delete_bridge(Config),
|
|
||||||
delete_all_bridges(),
|
delete_all_bridges(),
|
||||||
Config.
|
Config.
|
||||||
|
|
||||||
|
@ -232,8 +231,6 @@ end_per_testcase(_Testcase, Config) ->
|
||||||
ProxyPort = ?config(proxy_port, Config),
|
ProxyPort = ?config(proxy_port, Config),
|
||||||
ok = snabbkaffe:stop(),
|
ok = snabbkaffe:stop(),
|
||||||
emqx_common_test_helpers:reset_proxy(ProxyHost, ProxyPort),
|
emqx_common_test_helpers:reset_proxy(ProxyHost, ProxyPort),
|
||||||
%% catch clear_db(Config),
|
|
||||||
%% delete_bridge(Config),
|
|
||||||
delete_all_bridges(),
|
delete_all_bridges(),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue