TestContainers Compatibility, Version
This commit is contained in:
@@ -67,7 +67,7 @@ ext {
|
||||
springDataVersion = '2022.0.0-RC1'
|
||||
springVersion = project.hasProperty('springVersion') ? project.springVersion : '6.0.0-RC1'
|
||||
springRetryVersion = '2.0.0-RC1'
|
||||
testContainersVersion = '1.17.3'
|
||||
testContainersVersion = '1.17.5'
|
||||
zstdJniVersion = '1.5.0-2'
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ package org.springframework.amqp.rabbit.junit;
|
||||
import java.time.Duration;
|
||||
|
||||
import org.testcontainers.containers.RabbitMQContainer;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
@@ -37,7 +38,9 @@ public abstract class AbstractTestContainerTests {
|
||||
if (cache != null) {
|
||||
image = cache + image;
|
||||
}
|
||||
RABBITMQ = new RabbitMQContainer(image)
|
||||
DockerImageName imageName = DockerImageName.parse(image)
|
||||
.asCompatibleSubstituteFor("rabbitmq");
|
||||
RABBITMQ = new RabbitMQContainer(imageName)
|
||||
.withExposedPorts(5672, 15672, 5552)
|
||||
.withPluginsEnabled("rabbitmq_stream")
|
||||
.withStartupTimeout(Duration.ofMinutes(2));
|
||||
|
||||
Reference in New Issue
Block a user