How to run @QuarkusTest annotated unit tests in CI without a docker environment. #25707
Unanswered
marwanzsomo
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
What is |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I tried everything including setting
%test.quarkus.devservices.enabled=false
quarkus.devservices.enabled=false
quarkus.datasource.devservices.enabled=false
<< for individual services-Dtest-containers=false
I need to disable the use of containers because they would fail the build in Jenkins (running as a pod itself in Openshift)
I will need to refactor the unit tests to stop requiring dev resources however the moment I annotate the test with @QuarkusTest docker is called in and I get this error:
`Caused by: java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
at org.testcontainers.dockerclient.DockerClientProviderStrategy.lambda$getFirstValidStrategy$4(DockerClientProviderStrategy.java:156)
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:148)
at org.testcontainers.DockerClientFactory.getOrInitializeStrategy(DockerClientFactory.java:146)
at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:188)
at org.testcontainers.DockerClientFactory$1.getDockerClient(DockerClientFactory.java:101)
at com.github.dockerjava.api.DockerClientDelegate.authConfig(DockerClientDelegate.java:107)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:316)
at uk.xxxx.PostgresDbResource.start(PostgresDbResource.java:20)
at io.quarkus.test.common.TestResourceManager$TestResourceEntryRunnable.run(TestResourceManager.java:452)
... 4 more
JDK 11
<quarkus.platform.version>2.7.1.Final</quarkus.platform.version>
Beta Was this translation helpful? Give feedback.
All reactions