From 813c9d93f5a32d73fbf3e3e99b64d191f33d1b94 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 28 Feb 2024 11:25:24 +0100 Subject: [PATCH 1/5] Remove wrong chmod from hivemq container command --- .../main/java/org/testcontainers/hivemq/HiveMQContainer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java b/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java index 4638f758745..9c787458430 100644 --- a/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java +++ b/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java @@ -134,9 +134,8 @@ protected void configure() { setCommand( "-c", removeCommand + - "cp -r '/opt/hivemq/temp-extensions/'* /opt/hivemq/extensions/ " + - "; chmod -R 777 /opt/hivemq/extensions " + - "&& /opt/docker-entrypoint.sh /opt/hivemq/bin/run.sh" + "cp -r '/opt/hivemq/temp-extensions/'* /opt/hivemq/extensions/ ; " + + "/opt/docker-entrypoint.sh /opt/hivemq/bin/run.sh" ); } From 60a8234238c30d141913cde0ef4036c69fc6f1b1 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 28 Feb 2024 12:57:48 +0100 Subject: [PATCH 2/5] Readd chmod to support older hivemq containers --- .../src/main/java/org/testcontainers/hivemq/HiveMQContainer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java b/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java index 9c787458430..29e78920917 100644 --- a/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java +++ b/modules/hivemq/src/main/java/org/testcontainers/hivemq/HiveMQContainer.java @@ -135,6 +135,7 @@ protected void configure() { "-c", removeCommand + "cp -r '/opt/hivemq/temp-extensions/'* /opt/hivemq/extensions/ ; " + + "chmod -R 777 /opt/hivemq/extensions ; " + "/opt/docker-entrypoint.sh /opt/hivemq/bin/run.sh" ); } From d34247c7ec37689e7b74581c9110d38ccbfc632f Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 28 Feb 2024 19:16:13 +0100 Subject: [PATCH 3/5] Update hivemq-ce in tests to a version that runs as a non-root user Run some tests with an older hivemq-ce version as well --- modules/hivemq/build.gradle | 3 +-- .../ContainerWithExtensionFromDirectoryIT.java | 15 +++++++++++---- .../hivemq/ContainerWithExtensionIT.java | 14 ++++++++++---- .../hivemq/ContainerWithExtensionSubclassIT.java | 2 +- .../ContainerWithFileInExtensionHomeIT.java | 13 +++++++++---- .../hivemq/ContainerWithFileInHomeIT.java | 2 +- .../hivemq/ContainerWithLicenseIT.java | 2 +- .../hivemq/CreateFileInCopiedDirectoryIT.java | 2 +- .../hivemq/CreateFileInExtensionDirectoryIT.java | 13 +++++++++---- .../hivemq/HiveMQTestContainerCore.java | 2 +- 10 files changed, 45 insertions(+), 23 deletions(-) diff --git a/modules/hivemq/build.gradle b/modules/hivemq/build.gradle index 7aca932667b..6c03e07254d 100644 --- a/modules/hivemq/build.gradle +++ b/modules/hivemq/build.gradle @@ -11,14 +11,13 @@ dependencies { shaded("org.jboss.shrinkwrap:shrinkwrap-impl-base:1.2.6") shaded("net.lingala.zip4j:zip4j:2.11.5") - testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1") + testImplementation("org.junit.jupiter:junit-jupiter:5.10.1") testImplementation(project(":junit-jupiter")) testImplementation("com.hivemq:hivemq-extension-sdk:4.24.0") testImplementation("com.hivemq:hivemq-mqtt-client:1.3.3") testImplementation("org.apache.httpcomponents:httpclient:4.5.14") testImplementation("ch.qos.logback:logback-classic:1.4.14") testImplementation 'org.assertj:assertj-core:3.25.1' - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1") } test { diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java index 6fef56c0a2d..4e5bc0c8ebd 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java @@ -1,7 +1,10 @@ package org.testcontainers.hivemq; +import org.jetbrains.annotations.NotNull; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; import org.slf4j.event.Level; import org.testcontainers.hivemq.util.TestPublishModifiedUtil; import org.testcontainers.utility.DockerImageName; @@ -11,12 +14,16 @@ class ContainerWithExtensionFromDirectoryIT { - @Test + @ParameterizedTest + @ValueSource(strings = { + "2020.1", // first version that provided a container image + "2024.3" // version that runs the image as a non-root user by default + }) @Timeout(value = 3, unit = TimeUnit.MINUTES) - void test() throws Exception { + void test(final @NotNull String hivemqCeTag) throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag(hivemqCeTag) ) .withExtension(MountableFile.forClasspathResource("/modifier-extension")) .waitForExtension("Modifier Extension") @@ -33,7 +40,7 @@ void test() throws Exception { void test_wrongDirectoryName() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .withExtension(MountableFile.forClasspathResource("/modifier-extension-wrong-name")) .waitForExtension("Modifier Extension") diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java index eda3f236e2c..34275f912b1 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java @@ -1,7 +1,9 @@ package org.testcontainers.hivemq; -import org.junit.jupiter.api.Test; +import org.jetbrains.annotations.NotNull; import org.junit.jupiter.api.Timeout; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; import org.testcontainers.hivemq.util.MyExtension; import org.testcontainers.hivemq.util.TestPublishModifiedUtil; import org.testcontainers.utility.DockerImageName; @@ -11,9 +13,13 @@ class ContainerWithExtensionIT { - @Test + @ParameterizedTest + @ValueSource(strings = { + "2020.1", // first version that provided a container image + "2024.3" // version that runs the image as a non-root user by default + }) @Timeout(value = 3, unit = TimeUnit.MINUTES) - void test() throws Exception { + void test(final @NotNull String hivemqCeTag) throws Exception { final HiveMQExtension hiveMQExtension = HiveMQExtension .builder() .id("extension-1") @@ -24,7 +30,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag(hivemqCeTag) ) .withHiveMQConfig(MountableFile.forClasspathResource("/inMemoryConfig.xml")) .waitForExtension(hiveMQExtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionSubclassIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionSubclassIT.java index cd1df9ce8e7..a907b8f2d2e 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionSubclassIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionSubclassIT.java @@ -25,7 +25,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .waitForExtension(hiveMQExtension) .withExtension(hiveMQExtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java index dde5e677a15..32c400cbc32 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java @@ -9,8 +9,9 @@ import com.hivemq.extension.sdk.api.services.Services; import com.hivemq.extension.sdk.api.services.intializer.ClientInitializer; import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; import org.testcontainers.hivemq.util.TestPublishModifiedUtil; import org.testcontainers.utility.DockerImageName; import org.testcontainers.utility.MountableFile; @@ -22,9 +23,13 @@ class ContainerWithFileInExtensionHomeIT { - @Test + @ParameterizedTest + @ValueSource(strings = { + "2020.1", // first version that provided a container image + "2024.3" // version that runs the image as a non-root user by default + }) @Timeout(value = 3, unit = TimeUnit.MINUTES) - void test() throws Exception { + void test(final @NotNull String hivemqCeTag) throws Exception { final HiveMQExtension hiveMQExtension = HiveMQExtension .builder() .id("extension-1") @@ -35,7 +40,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag(hivemqCeTag) ) .withHiveMQConfig(MountableFile.forClasspathResource("/inMemoryConfig.xml")) .withExtension(hiveMQExtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInHomeIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInHomeIT.java index 78a51398bf3..c8e19316788 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInHomeIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInHomeIT.java @@ -35,7 +35,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .withHiveMQConfig(MountableFile.forClasspathResource("/inMemoryConfig.xml")) .withExtension(hiveMQExtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithLicenseIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithLicenseIT.java index f6aa6ed08f0..3973abddb0b 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithLicenseIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithLicenseIT.java @@ -35,7 +35,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .withHiveMQConfig(MountableFile.forClasspathResource("/inMemoryConfig.xml")) .withExtension(hiveMQExtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInCopiedDirectoryIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInCopiedDirectoryIT.java index c0e95f61cf6..df0f3ef3b9c 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInCopiedDirectoryIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInCopiedDirectoryIT.java @@ -47,7 +47,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .withHiveMQConfig(MountableFile.forClasspathResource("/inMemoryConfig.xml")) .withExtension(extension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java index 3e7bec94e6e..a9e00f0555d 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java @@ -9,8 +9,9 @@ import com.hivemq.extension.sdk.api.services.Services; import com.hivemq.extension.sdk.api.services.intializer.ClientInitializer; import org.jetbrains.annotations.NotNull; -import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; import org.testcontainers.hivemq.util.TestPublishModifiedUtil; import org.testcontainers.utility.DockerImageName; import org.testcontainers.utility.MountableFile; @@ -23,9 +24,13 @@ class CreateFileInExtensionDirectoryIT { - @Test + @ParameterizedTest + @ValueSource(strings = { + "2020.1", // first version that provided a container image + "2024.3" // version that runs the image as a non-root user by default + }) @Timeout(value = 3, unit = TimeUnit.MINUTES) - void test() throws Exception { + void test(final @NotNull String hivemqCeTag) throws Exception { final HiveMQExtension hiveMQExtension = HiveMQExtension .builder() .id("extension-1") @@ -36,7 +41,7 @@ void test() throws Exception { try ( final HiveMQContainer hivemq = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag(hivemqCeTag) ) .withHiveMQConfig(MountableFile.forClasspathResource("/inMemoryConfig.xml")) .waitForExtension(hiveMQExtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/HiveMQTestContainerCore.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/HiveMQTestContainerCore.java index 32097e52641..ede972e957d 100644 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/HiveMQTestContainerCore.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/HiveMQTestContainerCore.java @@ -16,7 +16,7 @@ class HiveMQTestContainerCore { @NotNull - final HiveMQContainer container = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3")); + final HiveMQContainer container = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3")); @TempDir File tempDir; From 88e9d071684ae9ed52ebbf655553fbe542ca1d50 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 28 Feb 2024 19:18:40 +0100 Subject: [PATCH 4/5] Update hivemq-ce version in documentation snippets --- .../testcontainers/hivemq/docs/DemoExtensionTestsIT.java | 2 +- .../java/org/testcontainers/hivemq/docs/DemoFilesIT.java | 6 +++--- .../testcontainers/hivemq/docs/DemoHiveMQContainerIT.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoExtensionTestsIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoExtensionTestsIT.java index f3289413a36..a1ff664649d 100644 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoExtensionTestsIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoExtensionTestsIT.java @@ -38,7 +38,7 @@ class DemoExtensionTestsIT { @Container final HiveMQContainer hivemqWithClasspathExtension = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .waitForExtension(hiveMQEClasspathxtension) .withExtension(hiveMQEClasspathxtension) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoFilesIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoFilesIT.java index a76fa60576f..8fe08b24750 100644 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoFilesIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoFilesIT.java @@ -19,7 +19,7 @@ class DemoFilesIT { // hivemqHome { final HiveMQContainer hivemqFileInHome = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .withFileInHomeFolder( MountableFile.forHostPath("src/test/resources/additionalFile.txt"), @@ -31,7 +31,7 @@ class DemoFilesIT { // extensionHome { @Container final HiveMQContainer hivemqFileInExtensionHome = new HiveMQContainer( - DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3") + DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3") ) .withExtension( HiveMQExtension @@ -52,7 +52,7 @@ class DemoFilesIT { // withLicenses { @Container - final HiveMQContainer hivemq = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3")) + final HiveMQContainer hivemq = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3")) .withLicense(MountableFile.forHostPath("src/test/resources/myLicense.lic")) .withLicense(MountableFile.forHostPath("src/test/resources/myExtensionLicense.elic")); diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoHiveMQContainerIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoHiveMQContainerIT.java index db6e3e58251..ed063617537 100644 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoHiveMQContainerIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/docs/DemoHiveMQContainerIT.java @@ -18,7 +18,7 @@ class DemoHiveMQContainerIT { // ceVersion { @Container - final HiveMQContainer hivemqCe = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce").withTag("2021.3")) + final HiveMQContainer hivemqCe = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce").withTag("2024.3")) .withLogLevel(Level.DEBUG); // } @@ -43,7 +43,7 @@ class DemoHiveMQContainerIT { // specificVersion { @Container - final HiveMQContainer hivemqSpecificVersion = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce:2021.3")); + final HiveMQContainer hivemqSpecificVersion = new HiveMQContainer(DockerImageName.parse("hivemq/hivemq-ce:2024.3")); // } From ceb989ea0b1d1931fd575cb937b72c24b4209781 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 28 Feb 2024 20:11:10 +0100 Subject: [PATCH 5/5] Fix formatting --- .../hivemq/ContainerWithExtensionFromDirectoryIT.java | 10 ++++++---- .../hivemq/ContainerWithExtensionIT.java | 10 ++++++---- .../hivemq/ContainerWithFileInExtensionHomeIT.java | 10 ++++++---- .../hivemq/CreateFileInExtensionDirectoryIT.java | 10 ++++++---- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java index 4e5bc0c8ebd..a5b6170a228 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionFromDirectoryIT.java @@ -15,10 +15,12 @@ class ContainerWithExtensionFromDirectoryIT { @ParameterizedTest - @ValueSource(strings = { - "2020.1", // first version that provided a container image - "2024.3" // version that runs the image as a non-root user by default - }) + @ValueSource( + strings = { + "2020.1", // first version that provided a container image + "2024.3", // version that runs the image as a non-root user by default + } + ) @Timeout(value = 3, unit = TimeUnit.MINUTES) void test(final @NotNull String hivemqCeTag) throws Exception { try ( diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java index 34275f912b1..2b255912da9 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithExtensionIT.java @@ -14,10 +14,12 @@ class ContainerWithExtensionIT { @ParameterizedTest - @ValueSource(strings = { - "2020.1", // first version that provided a container image - "2024.3" // version that runs the image as a non-root user by default - }) + @ValueSource( + strings = { + "2020.1", // first version that provided a container image + "2024.3", // version that runs the image as a non-root user by default + } + ) @Timeout(value = 3, unit = TimeUnit.MINUTES) void test(final @NotNull String hivemqCeTag) throws Exception { final HiveMQExtension hiveMQExtension = HiveMQExtension diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java index 32c400cbc32..c3c74b0dce7 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/ContainerWithFileInExtensionHomeIT.java @@ -24,10 +24,12 @@ class ContainerWithFileInExtensionHomeIT { @ParameterizedTest - @ValueSource(strings = { - "2020.1", // first version that provided a container image - "2024.3" // version that runs the image as a non-root user by default - }) + @ValueSource( + strings = { + "2020.1", // first version that provided a container image + "2024.3", // version that runs the image as a non-root user by default + } + ) @Timeout(value = 3, unit = TimeUnit.MINUTES) void test(final @NotNull String hivemqCeTag) throws Exception { final HiveMQExtension hiveMQExtension = HiveMQExtension diff --git a/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java b/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java index a9e00f0555d..6f65ebb1e9f 100755 --- a/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java +++ b/modules/hivemq/src/test/java/org/testcontainers/hivemq/CreateFileInExtensionDirectoryIT.java @@ -25,10 +25,12 @@ class CreateFileInExtensionDirectoryIT { @ParameterizedTest - @ValueSource(strings = { - "2020.1", // first version that provided a container image - "2024.3" // version that runs the image as a non-root user by default - }) + @ValueSource( + strings = { + "2020.1", // first version that provided a container image + "2024.3", // version that runs the image as a non-root user by default + } + ) @Timeout(value = 3, unit = TimeUnit.MINUTES) void test(final @NotNull String hivemqCeTag) throws Exception { final HiveMQExtension hiveMQExtension = HiveMQExtension