Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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
Esempio n. 4
0
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
Esempio n. 5
0
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)
Esempio n. 6
0
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)
Esempio n. 7
0
def step_impl2(context):
    context.group = create_random_group_id()
    context.client = create_consumer_group(
        context.topic,
        context.group,
    )