Skip to content

Commit 4ee9d21

Browse files
committed
Upgrade stream-client, Docker Image
1 parent 732f0da commit 4ee9d21

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ext {
5858
micrometerVersion = '1.10.0-M6'
5959
micrometerTracingVersion = '1.0.0-M8'
6060
mockitoVersion = '4.8.0'
61-
rabbitmqStreamVersion = '0.7.0'
61+
rabbitmqStreamVersion = '0.8.0'
6262
rabbitmqVersion = project.hasProperty('rabbitmqVersion') ? project.rabbitmqVersion : '5.16.0'
6363
rabbitmqHttpClientVersion = '3.12.1'
6464
reactorVersion = '2022.0.0-M6'

spring-rabbit-stream/src/test/java/org/springframework/rabbit/stream/support/AbstractIntegrationTests.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818

1919
import java.time.Duration;
2020

21+
import org.junit.jupiter.api.AfterAll;
2122
import org.testcontainers.containers.GenericContainer;
22-
import org.testcontainers.utility.DockerImageName;
23+
import org.testcontainers.containers.RabbitMQContainer;
2324

2425
/**
2526
* @author Gary Russell
@@ -33,13 +34,14 @@ public abstract class AbstractIntegrationTests {
3334
static {
3435
if (System.getProperty("spring.rabbit.use.local.server") == null
3536
&& System.getenv("SPRING_RABBIT_USE_LOCAL_SERVER") == null) {
36-
String image = "pivotalrabbitmq/rabbitmq-stream";
37+
String image = "rabbitmq:3.11";
3738
String cache = System.getenv().get("IMAGE_CACHE");
3839
if (cache != null) {
3940
image = cache + image;
4041
}
41-
RABBITMQ = new GenericContainer<>(DockerImageName.parse(image))
42+
RABBITMQ = new RabbitMQContainer(image)
4243
.withExposedPorts(5672, 15672, 5552)
44+
.withPluginsEnabled("rabbitmq_stream", "rabbitmq_management")
4345
.withStartupTimeout(Duration.ofMinutes(2));
4446
RABBITMQ.start();
4547
}
@@ -60,4 +62,9 @@ public static int streamPort() {
6062
return RABBITMQ != null ? RABBITMQ.getMappedPort(5552) : 5552;
6163
}
6264

65+
@AfterAll
66+
static void shutDown() {
67+
RABBITMQ.close();
68+
}
69+
6370
}

0 commit comments

Comments
 (0)