MCPcopy Create free account
hub / github.com/apache/kafka / write_consumer_properties

Function write_consumer_properties

system_test/utils/kafka_system_test_utils.py:2500–2507  ·  view source on GitHub ↗
(consumerProperties)

Source from the content-addressed store, hash-verified

2498 return leaderDict
2499
2500def write_consumer_properties(consumerProperties):
2501 import tempfile
2502 props_file_path = tempfile.gettempdir() + "/consumer.properties"
2503 consumer_props_file=open(props_file_path,"w")
2504 for key,value in consumerProperties.iteritems():
2505 consumer_props_file.write(key+"="+value+"\n")
2506 consumer_props_file.close()
2507 return props_file_path
2508

Callers 2

start_console_consumerFunction · 0.85

Calls 2

closeMethod · 0.65
writeMethod · 0.45

Tested by

no test coverage detected