Esempio n. 1
0
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)
}
Esempio n. 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)
}
Esempio n. 3
0
func (s *SmartConsumerSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
	s.kh = testhelpers.NewKafkaHelper(c)
}
Esempio n. 4
0
func (s *ProducerSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
}
func (s *TopicConsumerGearSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
}
Esempio n. 6
0
func (s *ServiceSuite) SetUpSuite(c *C) {
	testhelpers.InitLogging(c)
}