Merge pull request #49900 from onobc

* fix-pulsar-tests:
  Upgrade to Pulsar 4.2.0

Closes gh-49900
This commit is contained in:
Stéphane Nicoll
2026-04-07 06:43:45 +02:00
2 changed files with 4 additions and 3 deletions
@@ -1898,7 +1898,7 @@ bom {
releaseNotes("https://github.com/prometheus/client_java/releases/tag/parent-{version}")
}
}
library("Pulsar", "4.1.3") {
library("Pulsar", "4.2.0") {
group("org.apache.pulsar") {
bom("pulsar-bom")
}
@@ -238,9 +238,10 @@ public enum TestImage {
/**
* A container image suitable for testing Pulsar.
*/
PULSAR("apachepulsar/pulsar", "3.3.3", () -> PulsarContainer.class,
PULSAR("apachepulsar/pulsar", "4.2.0", () -> PulsarContainer.class,
(container) -> ((PulsarContainer) container).withStartupAttempts(2)
.withStartupTimeout(Duration.ofMinutes(3))),
.withStartupTimeout(Duration.ofMinutes(3))
.withEnv("PULSAR_PREFIX_advertisedAddress", "localhost")),
/**
* A container image suitable for testing Pulsar using the deprecated