mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-26 22:54:49 +00:00
Add initial zookeeper wrapper code
This commit is contained in:
17
tests/zookeeper_watcher_test.cpp
Normal file
17
tests/zookeeper_watcher_test.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include "cppkafka/zookeeper/zookeeper_watcher.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
using namespace cppkafka;
|
||||
|
||||
class ZookeeperWatcherTest : public testing::Test {
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
TEST_F(ZookeeperWatcherTest, GetBrokers) {
|
||||
ZookeeperWatcher watcher(ZOOKEEPER_TEST_INSTANCE);
|
||||
string brokers = watcher.get_brokers();
|
||||
EXPECT_EQ(KAFKA_TEST_INSTANCE, brokers);
|
||||
}
|
||||
Reference in New Issue
Block a user