Skip to content

Convert testing suite to TestContainers. #797

Description

@j7nw4r

Summary

The current test suite fails due to VMware/Broadcom's deprecation of Bitnami. A Kafka source that is not affected by the Bitnami deprecation is required to restore a working test setup.

Motivation

Testing is currently blocked. Restoring a working test setup requires a Kafka source that is not affected by the Bitnami deprecation.

Proposal

Migrate testing to Kafka Testcontainers.

Each test compilation unit (each test file) would run its own Docker Kafka container. Multiple versions are available (Apache vs Confluent, Kraft vs Zookeeper).

The first pass would be an implementation using Apache Kraft Kafka. A later step could add a test macro that enumerates the tests over all of the necessary Kafka distributions.

This change brings in a dependency on local Docker/Podman being available for testing. The current test suite already depends on external Kafka.

https://docs.rs/testcontainers/latest/testcontainers/
https://docs.rs/testcontainers-modules/latest/testcontainers_modules/

@fede1024

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions