fix: add descriptions fields to bridge_v1
This commit is contained in:
parent
4fc14fb4ba
commit
363055a32e
|
@ -124,7 +124,10 @@ common_bridge_fields() ->
|
||||||
desc => ?DESC("desc_enable"),
|
desc => ?DESC("desc_enable"),
|
||||||
default => true
|
default => true
|
||||||
}
|
}
|
||||||
)}
|
)},
|
||||||
|
%% Create v2 connector then usr v1 /bridges_probe api to test connector
|
||||||
|
%% /bridges_probe should pass through v2 connector's description.
|
||||||
|
{description, emqx_schema:description_schema()}
|
||||||
].
|
].
|
||||||
|
|
||||||
status_fields() ->
|
status_fields() ->
|
||||||
|
|
|
@ -1047,6 +1047,13 @@ t_bridges_probe(Config) ->
|
||||||
?HTTP_BRIDGE(URL),
|
?HTTP_BRIDGE(URL),
|
||||||
Config
|
Config
|
||||||
),
|
),
|
||||||
|
%% with descriptions is ok.
|
||||||
|
{ok, 204, <<>>} = request(
|
||||||
|
post,
|
||||||
|
uri(["bridges_probe"]),
|
||||||
|
(?HTTP_BRIDGE(URL))#{<<"description">> => <<"Test Description">>},
|
||||||
|
Config
|
||||||
|
),
|
||||||
|
|
||||||
?assertMatch(
|
?assertMatch(
|
||||||
{ok, 400, #{
|
{ok, 400, #{
|
||||||
|
|
Loading…
Reference in New Issue