This is an automated email from the ASF dual-hosted git repository.
fjtiradosarti pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new efb77cf550 [SRVLOGIC-253] Skip shouldGetDockerImageName test if no
docker (#3440)
efb77cf550 is described below
commit efb77cf5506148a8caf412ff9c293d2960e13719
Author: Gonzalo Muñoz <[email protected]>
AuthorDate: Thu Mar 14 16:09:05 2024 +0100
[SRVLOGIC-253] Skip shouldGetDockerImageName test if no docker (#3440)
---
.../java/org/kie/kogito/testcontainers/KogitoMongoDBContainerTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/kogito-test-utils/src/test/java/org/kie/kogito/testcontainers/KogitoMongoDBContainerTest.java
b/kogito-test-utils/src/test/java/org/kie/kogito/testcontainers/KogitoMongoDBContainerTest.java
index 03a0b843b6..65122081c4 100644
---
a/kogito-test-utils/src/test/java/org/kie/kogito/testcontainers/KogitoMongoDBContainerTest.java
+++
b/kogito-test-utils/src/test/java/org/kie/kogito/testcontainers/KogitoMongoDBContainerTest.java
@@ -20,8 +20,10 @@ package org.kie.kogito.testcontainers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
+import org.testcontainers.DockerClientFactory;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.jupiter.api.Assumptions.assumeTrue;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.spy;
@@ -51,6 +53,7 @@ class KogitoMongoDBContainerTest {
@Test
void shouldGetDockerImageName() {
+ assumeTrue(DockerClientFactory.instance().isDockerAvailable(),
"Aborting test: docker env not found");
assertThat(container.getDockerImageName()).isEqualTo(System.getProperty(Constants.CONTAINER_NAME_PREFIX
+ KogitoMongoDBContainer.NAME));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]