test: fix test mock by calling exported function
This commit is contained in:
parent
3bea3496af
commit
d682e6e23c
|
@ -28,7 +28,13 @@
|
||||||
get_response/0,
|
get_response/0,
|
||||||
put_request/0,
|
put_request/0,
|
||||||
post_request/0,
|
post_request/0,
|
||||||
examples/1,
|
examples/1
|
||||||
|
]).
|
||||||
|
|
||||||
|
%% Exported for mocking
|
||||||
|
%% TODO: refactor emqx_bridge_v1_compatibility_layer_SUITE so we don't need to
|
||||||
|
%% export this
|
||||||
|
-export([
|
||||||
registered_api_schemas/1
|
registered_api_schemas/1
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
@ -51,7 +57,7 @@ post_request() ->
|
||||||
api_schema("post").
|
api_schema("post").
|
||||||
|
|
||||||
api_schema(Method) ->
|
api_schema(Method) ->
|
||||||
APISchemas = registered_api_schemas(Method),
|
APISchemas = ?MODULE:registered_api_schemas(Method),
|
||||||
hoconsc:union(bridge_api_union(APISchemas)).
|
hoconsc:union(bridge_api_union(APISchemas)).
|
||||||
|
|
||||||
registered_api_schemas(Method) ->
|
registered_api_schemas(Method) ->
|
||||||
|
|
Loading…
Reference in New Issue