def test_increasing_topic_partitions_succeeds( kafka_client: client.KafkaClient): partition_info = kafka_client.check_topic_partition_change( config.DEFAULT_TOPIC_NAME, config.DEFAULT_PARTITION_COUNT + 1) assert "The number of partitions for a topic can only be increased" not in partition_info
def test_setting_topic_partitions_to_same_value_fails( kafka_client: client.KafkaClient): partition_info = kafka_client.check_topic_partition_change( config.DEFAULT_TOPIC_NAME, config.DEFAULT_PARTITION_COUNT) assert "The number of partitions for a topic can only be increased" in partition_info