Esempio n. 1
0
 def test_drop_all_streams(self):
     topic = self.exist_topic
     stream_name = self.test_prefix + "_test_drop_all_streams"
     utils.drop_stream(self.api_client, stream_name)
     ksql_string = "CREATE STREAM {} (viewtime bigint, userid varchar, pageid varchar) \
                     WITH (kafka_topic='{}', value_format='DELIMITED');".format(
         stream_name, topic)
     self.api_client.ksql(ksql_string)
     utils.drop_all_streams(self.api_client, prefix=self.test_prefix)
     self.assertFalse(utils.get_stream_info(self.api_client, stream_name))
Esempio n. 2
0
 def tearDown(self):
     if utils.check_kafka_available(self.bootstrap_servers):
         utils.drop_all_streams(self.api_client, prefix=self.test_prefix)