Пример #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()
}