refactor: HTTP bridge into the emqx_bridge_http app

Fixes:
https://emqx.atlassian.net/browse/EMQX-9568
This commit is contained in:
Kjell Winblad 2023-07-06 18:23:49 +02:00 committed by Ivan Dyachkov
parent f28510b3ad
commit 6ce47614d2
4 changed files with 5 additions and 5 deletions

View File

@ -53,7 +53,7 @@ api_schema(Method) ->
Broker = [
{Type, ref(Mod, Method)}
|| {Type, Mod} <- [
{<<"webhook">>, emqx_bridge_webhook_schema},
{<<"webhook">>, emqx_bridge_http_schema},
{<<"mqtt">>, emqx_bridge_mqtt_schema}
]
],
@ -158,7 +158,7 @@ fields(bridges) ->
[
{webhook,
mk(
hoconsc:map(name, ref(emqx_bridge_webhook_schema, "config")),
hoconsc:map(name, ref(emqx_bridge_http_schema, "config")),
#{
desc => ?DESC("bridges_webhook"),
required => false,

View File

@ -13,7 +13,7 @@
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%--------------------------------------------------------------------
-module(emqx_bridge_webhook_schema).
-module(emqx_bridge_http_schema).
-include_lib("typerefl/include/types.hrl").
-include_lib("hocon/include/hoconsc.hrl").

View File

@ -13,7 +13,7 @@
%% limitations under the License.
%%--------------------------------------------------------------------
-module(emqx_bridge_webhook_SUITE).
-module(emqx_bridge_http_SUITE).
%% This suite should contains testcases that are specific for the webhook
%% bridge. There are also some test cases that implicitly tests the webhook

View File

@ -1,4 +1,4 @@
emqx_bridge_webhook_schema {
emqx_bridge_http_schema {
config_body.desc:
"""The body of the HTTP request.<br/>