int main_0044_partition_cnt (int argc, char **argv) { if (!test_can_create_topics(1)) return 0; test_producer_partition_cnt_change(); return 0; }
int main_0045_subscribe_update_topic_remove (int argc, char **argv) { if (!test_can_create_topics(1)) return 0; do_test_topic_remove(); return 0; }
int main_0045_subscribe_update (int argc, char **argv) { if (!test_can_create_topics(1)) return 0; do_test_non_exist_and_partchange(); do_test_regex(); return 0; }
int main_0028_long_topicnames (int argc, char **argv) { const int msgcnt = 1000; uint64_t testid; char topic[256]; rd_kafka_t *rk_c; if (!test_can_create_topics(1)) return 0; memset(topic, 'a', sizeof(topic)-1); topic[sizeof(topic)-1] = '\0'; strncpy(topic, test_mk_topic_name(topic, 1), sizeof(topic)-1); TEST_SAY("Using topic name of %d bytes: %s\n", (int)strlen(topic), topic); /* Create topic */ test_create_topic(topic, 1, 1); /* First try a non-verifying consumer. The consumer has been known * to crash when the broker bug kicks in. */ rk_c = test_create_consumer(topic, NULL, NULL, NULL); test_consumer_subscribe(rk_c, topic); test_consumer_poll_no_msgs("consume.nomsgs", rk_c, 0, 5000); test_consumer_close(rk_c); /* Produce messages */ testid = test_produce_msgs_easy(topic, 0, RD_KAFKA_PARTITION_UA, msgcnt); /* Consume messages */ test_consume_msgs_easy(NULL, topic, testid, -1, msgcnt, NULL); return 0; }