예제 #1
0
func (s *AdminSuite) SetUpSuite(c *C) {
	logging.InitTest()
	s.config = config.Default()
	s.config.ClientID = "producer"
	s.config.Kafka.SeedPeers = testKafkaPeers
	s.config.ZooKeeper.SeedPeers = testZookeeperPeers
}
예제 #2
0
func (s *ConsumerGroupRegistrySuite) SetUpSuite(c *C) {
	logging.InitTest()

	s.cid = sarama.RootCID.NewChild("cgr-test")
	var err error
	s.kazooConn, err = kazoo.NewKazoo(testZookeeperPeers, kazoo.NewConfig())
	c.Assert(err, IsNil)
}
예제 #3
0
func (s *SmartConsumerSuite) SetUpSuite(c *C) {
	logging.InitTest()
	var err error
	config := config.Default()
	config.ClientID = "producer"
	config.Kafka.SeedPeers = testKafkaPeers
	config.ChannelBufferSize = 1
	s.producer, err = SpawnGracefulProducer(config)
	c.Assert(err, IsNil)
}
예제 #4
0
func (s *ServiceSuite) SetUpSuite(c *C) {
	logging.InitTest()
}
예제 #5
0
func (s *GracefulProducerSuite) SetUpSuite(c *C) {
	logging.InitTest()
}