diff --git a/embedded-opensearch/pom.xml b/embedded-opensearch/pom.xml
index 16b65d032..281623325 100644
--- a/embedded-opensearch/pom.xml
+++ b/embedded-opensearch/pom.xml
@@ -13,7 +13,7 @@
embedded-opensearch
- 1.5.4
+ 1.6.0
2.1.2
@@ -48,4 +48,4 @@
-
\ No newline at end of file
+
diff --git a/embedded-opensearch/src/test/java/com/playtika/testcontainer/opensearch/springdata/SpringDataTest.java b/embedded-opensearch/src/test/java/com/playtika/testcontainer/opensearch/springdata/SpringDataTest.java
index 2955525c1..f70dce95d 100644
--- a/embedded-opensearch/src/test/java/com/playtika/testcontainer/opensearch/springdata/SpringDataTest.java
+++ b/embedded-opensearch/src/test/java/com/playtika/testcontainer/opensearch/springdata/SpringDataTest.java
@@ -34,11 +34,11 @@ public void springDataShouldWork() {
String key = "test::1";
String value = "myvalue";
assertThat(documentRepository).isNotNull();
- assertThat(documentRepository.findById(key).isPresent()).isFalse();
+ assertThat(documentRepository.findById(key)).isEmpty();
TestDocument testDocument = saveDocument(key, value);
- assertThat(documentRepository.findById(key).get()).isEqualTo(testDocument);
+ assertThat(documentRepository.findById(key)).contains(testDocument);
}
@Test
@@ -50,7 +50,7 @@ public void queryShouldWork() {
List resultList = documentRepository.findByTitle(title);
- assertThat(resultList.size()).isEqualTo(2);
+ assertThat(resultList).hasSize(2);
}
@Test
diff --git a/pom.xml b/pom.xml
index 87cfec332..4e648af2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,6 @@
embedded-minio
embedded-google-pubsub
embedded-google-storage
- embedded-influxdb
embedded-vault
embedded-oracle-xe
embedded-mysql
@@ -86,6 +85,7 @@
embedded-mailhog
embedded-aerospike-enterprise
embedded-spicedb
+ embedded-influxdb
diff --git a/testcontainers-common/src/test/java/com/playtika/testcontainer/common/utils/MountVolumesTest.java b/testcontainers-common/src/test/java/com/playtika/testcontainer/common/utils/MountVolumesTest.java
index 07cf0155c..91cbdd3ec 100644
--- a/testcontainers-common/src/test/java/com/playtika/testcontainer/common/utils/MountVolumesTest.java
+++ b/testcontainers-common/src/test/java/com/playtika/testcontainer/common/utils/MountVolumesTest.java
@@ -37,7 +37,7 @@ void noConfigurationEqualsEmptyList() {
assertThat(it).hasSingleBean(CommonContainerProperties.class);
CommonContainerProperties properties = it.getBean(CommonContainerProperties.class);
assertThat(properties).isNotNull();
- assertThat(properties.getMountVolumes()).hasSize(0);
+ assertThat(properties.getMountVolumes()).isEmpty();
});
}
@@ -71,7 +71,7 @@ void wrongModeFailsAtStartup() {
.run(it -> {
assertThat(it).hasFailed();
assertThat(it).getFailure().hasCauseExactlyInstanceOf(BindException.class);
- assertThat(it).getFailure().getCause()
+ assertThat(it).getFailure().cause()
.hasMessage("Failed to bind properties under 'embedded.postgresql.mount-volumes[0].mode' to org.testcontainers.containers.BindMode");
});
}
@@ -82,8 +82,8 @@ void nullContainerPathFailsAtStartup() {
.run(it -> {
assertThat(it).hasFailed();
assertThat(it).getFailure().hasRootCauseExactlyInstanceOf(BindValidationException.class);
- assertThat(it).getFailure().getRootCause()
- .hasMessageContaining("on field 'containerPath': rejected value [null];");
+ assertThat(it).getFailure().rootCause()
+ .hasMessageContaining("on field 'mountVolumes[0].containerPath': rejected value [null];");
});
}
@@ -94,7 +94,7 @@ void emptyContainerPathFailsAtStartup() {
.run(it -> {
assertThat(it).hasFailed();
assertThat(it).getFailure().hasRootCauseExactlyInstanceOf(BindValidationException.class)
- .getRootCause().hasMessageContaining("on field 'containerPath': rejected value [];");
+ .rootCause().hasMessageContaining("on field 'mountVolumes[0].containerPath': rejected value [];");
});
}
@@ -104,7 +104,7 @@ void nullHostPathFailsAtStartup() {
.run(it -> {
assertThat(it).hasFailed();
assertThat(it).getFailure().hasRootCauseExactlyInstanceOf(BindValidationException.class)
- .getRootCause().hasMessageContaining("on field 'hostPath': rejected value [null];");
+ .rootCause().hasMessageContaining("on field 'mountVolumes[0].hostPath': rejected value [null];");
});
}
@@ -115,7 +115,7 @@ void emptyHostPathFailsAtStartup() {
.run(it -> {
assertThat(it).hasFailed();
assertThat(it).getFailure().hasRootCauseExactlyInstanceOf(BindValidationException.class)
- .getRootCause().hasMessageContaining("on field 'hostPath': rejected value [];");
+ .rootCause().hasMessageContaining("on field 'mountVolumes[0].hostPath': rejected value [];");
});
}
diff --git a/testcontainers-spring-boot-parent/pom.xml b/testcontainers-spring-boot-parent/pom.xml
index 91ef77dff..8fc73edf9 100644
--- a/testcontainers-spring-boot-parent/pom.xml
+++ b/testcontainers-spring-boot-parent/pom.xml
@@ -16,8 +16,8 @@
1.20.4
- 3.3.5
- 2023.0.4
+ 3.4.1
+ 2024.0.0
5.9.0
3.18
5.11.4