def step_impl1(context): topic = create_random_topic(1, 1) produce_example_msg(topic) context.groups = [] for _ in range(3): group = create_random_group_id() context.groups.append(group) create_consumer_group(topic, group)
def step_impl4(context): context.group = create_random_group_id() context.client = create_consumer_group( context.topic, context.group, num_messages=CONSUMED_MSG_COUNT, ) context.msgs_consumed = CONSUMED_MSG_COUNT
def step_impl1(context): for topic in test_topics: create_random_topic(1, 1, topic_name=topic) produce_example_msg(topic) create_consumer_group(topic, test_group)
def step_impl2(context): context.group = create_random_group_id() context.client = create_consumer_group( context.topic, context.group, )