Skip to content

How to create a Kafka test Container #121

@wuqunfei

Description

@wuqunfei

Could we create a Kafka container like this
with TestContainer(image="confluentinc/cp-kafka:5.4.3") as container: ip = container.get_container_host_ip()

but I don't know how to implement a method like https://www.testcontainers.org/modules/kafka/
kafka.getBootstrapServers()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions