fix(test): make strings json-friendly in kafka testsuite
This commit is contained in:
parent
de740a2fd9
commit
9cbe64a132
|
@ -268,7 +268,7 @@ kafka_bridge_rest_api_helper(Config) ->
|
||||||
CreateBodyTmp = #{
|
CreateBodyTmp = #{
|
||||||
<<"type">> => <<"kafka">>,
|
<<"type">> => <<"kafka">>,
|
||||||
<<"name">> => <<"my_kafka_bridge">>,
|
<<"name">> => <<"my_kafka_bridge">>,
|
||||||
<<"bootstrap_hosts">> => maps:get(<<"bootstrap_hosts">>, Config),
|
<<"bootstrap_hosts">> => iolist_to_binary(maps:get(<<"bootstrap_hosts">>, Config)),
|
||||||
<<"enable">> => true,
|
<<"enable">> => true,
|
||||||
<<"authentication">> => maps:get(<<"authentication">>, Config),
|
<<"authentication">> => maps:get(<<"authentication">>, Config),
|
||||||
<<"producer">> => #{
|
<<"producer">> => #{
|
||||||
|
@ -276,7 +276,7 @@ kafka_bridge_rest_api_helper(Config) ->
|
||||||
topic => <<"t/#">>
|
topic => <<"t/#">>
|
||||||
},
|
},
|
||||||
<<"kafka">> => #{
|
<<"kafka">> => #{
|
||||||
<<"topic">> => erlang:list_to_binary(KafkaTopic),
|
<<"topic">> => iolist_to_binary(KafkaTopic),
|
||||||
<<"buffer">> => #{
|
<<"buffer">> => #{
|
||||||
<<"memory_overload_protection">> => <<"false">>
|
<<"memory_overload_protection">> => <<"false">>
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue