Allow to pass-in via cmake all the kafka config options for testing: broker, partitions and topics

This commit is contained in:
Alexander Damian
2020-02-15 14:33:24 -05:00
parent 2287e0994b
commit ffcf8956bd
3 changed files with 26 additions and 6 deletions

View File

@@ -15,8 +15,7 @@ using Catch::TestCaseStats;
using Catch::Totals;
using Catch::Session;
std::vector<std::string> KAFKA_TOPICS = {"cppkafka_test1", "cppkafka_test2"};
int KAFKA_NUM_PARTITIONS = 3;
std::vector<std::string> KAFKA_TOPICS = {KAFKA_TOPIC_NAMES};
namespace cppkafka {