Beispiel #1
0
    def test_create_partitions(self):
        topic = self.topics[0].name
        cli = KafkaCliTools(self.redpanda)
        # add 5 partitions to the topic
        cli.add_topic_partitions(topic, 5)

        res = cli.describe_topic(topic)
        # initially topic had 2 partitions, we added 5
        assert res.partition_count == 7
Beispiel #2
0
 def _add_topic_partitions(self, topic, count):
     client = KafkaCliTools(self.redpanda)
     client.add_topic_partitions(topic, count)