test: add test case to pin bridge schema json version 0.1.0

This commit is contained in:
Zaiming (Stone) Shi 2023-11-06 21:59:36 +01:00
parent 9a26c03a5c
commit bb8f80f256
1 changed files with 7 additions and 0 deletions

View File

@ -361,3 +361,10 @@ bridges.kafka_consumer.my_consumer {
}
}
""".
%% assert compatibility
bridge_schema_json_test() ->
JSON = iolist_to_binary(emqx_conf:bridge_schema_json()),
Map = emqx_utils_json:decode(JSON),
Path = [<<"components">>, <<"schemas">>, <<"bridge_kafka.post_producer">>, <<"properties">>],
?assertMatch(#{<<"kafka">> := _}, emqx_utils_maps:deep_get(Path, Map)).