test: expect unsupported_version for now
This commit is contained in:
parent
5ccaff5a86
commit
b6b144fa31
|
@ -563,7 +563,10 @@ t_data_import_content(_) ->
|
||||||
Dir = emqx:get_env(data_dir),
|
Dir = emqx:get_env(data_dir),
|
||||||
{ok, Bin} = file:read_file(filename:join(Dir, Filename)),
|
{ok, Bin} = file:read_file(filename:join(Dir, Filename)),
|
||||||
Content = emqx_json:decode(Bin),
|
Content = emqx_json:decode(Bin),
|
||||||
?assertMatch({ok, "{\"code\":0}"}, request_api(post, api_path(["data","import"]), [], auth_header_(), Content)),
|
%% TODO: enable when 5.0 if we are still using data export/import
|
||||||
|
%?assertMatch({ok, "{\"code\":0}"}, request_api(post, api_path(["data","import"]), [], auth_header_(), Content)),
|
||||||
|
?assertMatch({ok, "{\"message\":\"5.0\",\"code\":\"unsupported_version\"}"},
|
||||||
|
request_api(post, api_path(["data","import"]), [], auth_header_(), Content)),
|
||||||
application:stop(emqx_rule_engine),
|
application:stop(emqx_rule_engine),
|
||||||
application:stop(emqx_dahboard).
|
application:stop(emqx_dahboard).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue