func (s *GroupRegistratorSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
	s.cid = sarama.RootCID.NewChild("gr-test")
	var err error
	s.kazooConn, err = kazoo.NewKazoo(testhelpers.ZookeeperPeers, kazoo.NewConfig())
	c.Assert(err, IsNil)
}
Example #2
0
func (s *AdminSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
	s.cfg = config.Default()
	s.cfg.ClientID = "producer"
	s.cfg.Kafka.SeedPeers = testhelpers.KafkaPeers
	s.cfg.ZooKeeper.SeedPeers = testhelpers.ZookeeperPeers
	s.kh = testhelpers.NewKafkaHelper(c)
}
Example #3
0
func (s *SmartConsumerSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
	s.kh = testhelpers.NewKafkaHelper(c)
}
Example #4
0
func (s *ProducerSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
}
func (s *TopicConsumerGearSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
}
Example #6
0
func (s *ServiceSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
}