GH-2681 - Upgrade Neo4j container to 5.
This commit is contained in:
@@ -48,7 +48,7 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
// tag::faq.template-reactive-pt2[]
|
||||
class ReactiveTemplateExampleTest {
|
||||
|
||||
@Container private static Neo4jContainer<?> neo4jContainer = new Neo4jContainer<>("neo4j:4.4");
|
||||
@Container private static Neo4jContainer<?> neo4jContainer = new Neo4jContainer<>("neo4j:5");
|
||||
|
||||
@DynamicPropertySource
|
||||
static void neo4jProperties(DynamicPropertyRegistry registry) {
|
||||
|
||||
@@ -53,21 +53,21 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
public class MultipleContextsIT {
|
||||
|
||||
@Container
|
||||
private static Neo4jContainer container1 = new Neo4jContainer<>("neo4j:4.4")
|
||||
.withAdminPassword("secret1");
|
||||
private static Neo4jContainer container1 = new Neo4jContainer<>("neo4j:5")
|
||||
.withAdminPassword("verysecret1");
|
||||
|
||||
@Container
|
||||
private static Neo4jContainer container2 = new Neo4jContainer<>("neo4j:4.4")
|
||||
.withAdminPassword("secret2");
|
||||
private static Neo4jContainer container2 = new Neo4jContainer<>("neo4j:5")
|
||||
.withAdminPassword("verysecret2");
|
||||
|
||||
@DynamicPropertySource
|
||||
static void neo4jSettings(DynamicPropertyRegistry registry) {
|
||||
|
||||
registry.add("database1.url", container1::getBoltUrl);
|
||||
registry.add("database1.password", () -> "secret1");
|
||||
registry.add("database1.password", () -> "verysecret1");
|
||||
|
||||
registry.add("database2.url", container2::getBoltUrl);
|
||||
registry.add("database2.password", () -> "secret2");
|
||||
registry.add("database2.password", () -> "verysecret2");
|
||||
}
|
||||
|
||||
@Test // DATAGRAPH-1441
|
||||
|
||||
@@ -293,7 +293,7 @@ public class Neo4jExtension implements BeforeAllCallback, BeforeEachCallback {
|
||||
|
||||
private final String repository = Optional.ofNullable(System.getenv(SYS_PROPERTY_NEO4J_REPOSITORY)).orElse("neo4j");
|
||||
|
||||
private final String imageVersion = Optional.ofNullable(System.getenv(SYS_PROPERTY_NEO4J_VERSION)).orElse("4.4");
|
||||
private final String imageVersion = Optional.ofNullable(System.getenv(SYS_PROPERTY_NEO4J_VERSION)).orElse("5");
|
||||
|
||||
private final boolean containerReuseSupported = TestcontainersConfiguration
|
||||
.getInstance().environmentSupportsReuse();
|
||||
|
||||
Reference in New Issue
Block a user