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 }
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) }
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) }
func (s *ServiceSuite) SetUpSuite(c *C) { logging.InitTest() }
func (s *GracefulProducerSuite) SetUpSuite(c *C) { logging.InitTest() }