Skip to content

v0.7.0

Compare
Choose a tag to compare
@k-wall k-wall released this 23 Nov 15:27
· 108 commits to main since this release

What's Changed?

  • #221: Add ability to inject test topics into tests #229
  • #231: Bump org.testcontainers:testcontainers-bom from 1.19.1 to 1.19.2
  • #219: Allow kafka configuration to be provided for Producers, Consumer and Admin clients too
  • #143: Default native kafka image tag from the version of Kafka on the classpath.
  • #197: Consumer of the extension should be able to choose the version of the kafka dependency.

Changes, deprecations and removals

  • It is now necessary to declare org.apache.kafka:kafka_2.13 as a test dependency.
  • If you wish to use kafka in-vm with zookeeper, org.apache.zookeeper:zookeeper must be declared as test dependency too.
  • The way TestcontainersKafkaCluster determines the native image version tag to use for kafka and zookeeper is changed.
    Previously TestcontainersKafkaCluster always used the latest-snapshot version. With this release, it will now default
    to use the version of the kafka native image that corresponds to the version of Kafka Broker found on the classpath.
    This will give consumers of the test extension that have tests using TestcontainersKafkaCluster test repeatability
    and consumers who use both InVMKafkaCluster and TestcontainersKafkaCluster kafka broker version consistency.
    To get back the original behaviour, annotate the KafkaCluster with @Version("latest-snapshot").
  • The annotation @ClientConfig is now available to pass configuration to Kafka Clients. This is
    understood by Producer, Consumer, and Admin types.