fix(mgmt): fix status api test case error
This commit is contained in:
parent
01ba45cc37
commit
dee92bb8b8
|
@ -31,7 +31,7 @@ end_per_suite(_) ->
|
|||
emqx_mgmt_api_test_util:end_suite().
|
||||
|
||||
t_status(_Config) ->
|
||||
Path = emqx_mgmt_api_test_util:api_path(["status"]),
|
||||
Path = emqx_mgmt_api_test_util:api_path_without_base_path(["/status"]),
|
||||
Status = io_lib:format("Node ~ts is ~ts~nemqx is ~ts", [node(), started, running]),
|
||||
{ok, Status} = emqx_mgmt_api_test_util:request_api(get, Path),
|
||||
ok.
|
||||
|
|
|
@ -110,6 +110,9 @@ build_http_header(X) ->
|
|||
api_path(Parts) ->
|
||||
?SERVER ++ filename:join([?BASE_PATH | Parts]).
|
||||
|
||||
api_path_without_base_path(Parts) ->
|
||||
?SERVER ++ filename:join([Parts]).
|
||||
|
||||
%% Usage:
|
||||
%% upload_request(<<"site.com/api/upload">>, <<"path/to/file.png">>,
|
||||
%% <<"upload">>, <<"image/png">>, [], <<"some-token">>)
|
||||
|
|
Loading…
Reference in New Issue