Exemplo 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)
Exemplo 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)
Exemplo 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
Exemplo 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
Exemplo 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)
Exemplo 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)
Exemplo n.º 7
0
def step_impl2(context):
    context.group = create_random_group_id()
    context.client = create_consumer_group(
        context.topic,
        context.group,
    )