fix(test): make strings json-friendly in kafka testsuite

This commit is contained in:
Andrew Mayorov 2023-02-24 15:05:20 +03:00
parent de740a2fd9
commit 9cbe64a132
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ kafka_bridge_rest_api_helper(Config) ->
CreateBodyTmp = #{
<<"type">> => <<"kafka">>,
<<"name">> => <<"my_kafka_bridge">>,
<<"bootstrap_hosts">> => maps:get(<<"bootstrap_hosts">>, Config),
<<"bootstrap_hosts">> => iolist_to_binary(maps:get(<<"bootstrap_hosts">>, Config)),
<<"enable">> => true,
<<"authentication">> => maps:get(<<"authentication">>, Config),
<<"producer">> => #{
@ -276,7 +276,7 @@ kafka_bridge_rest_api_helper(Config) ->
topic => <<"t/#">>
},
<<"kafka">> => #{
<<"topic">> => erlang:list_to_binary(KafkaTopic),
<<"topic">> => iolist_to_binary(KafkaTopic),
<<"buffer">> => #{
<<"memory_overload_protection">> => <<"false">>
},