-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
During IT: Redis host not configured #40805
Comments
I cannot reproduce this on my machine |
@geoand Not even with the sample project I provided? https://github.com/johnmanko/quarkus-redis-service-example I made sure to |
Yes, that's the project I tried |
Neither can I reproduce. Tried on a mac, so needed to add
|
@johnmanko, according to:
There seems to be an issue with docker detection by TestContainers. |
@johnmanko does it work without |
I'll try when I'm back in the office next week. I forget off-hand which options (don't) work as expected. |
Describe the bug
I'm attempting to add integration tests to a project, but I can't get it when extension
container-image-docker
is installed.It errors with
Redis host not configured - you must either configure 'quarkus.redis.hosts
or 'quarkus.redis.host-provider-name' and have a bean providing the hosts programmatically.`Testing against the mock
@QuarkusTest
tests runs fine:./mvnw verify
Testing again integration
@QuarkusIntegrationTest
with plugincontainer-image-docker
runs:./mvnw verify -Dnative -Dquarkus.container-image.build=true
:Now, adding the following extension and rerunning the IT native tests:
Expected behavior
I would expect that a Redis instance would started and
quarkus.redis.hosts
set accordingly for the integration tests.Actual behavior
Is fails on ITs.
How to Reproduce?
Grab project with exact code/config I was testing with: https://github.com/johnmanko/quarkus-redis-service-example
Run:
./mvnw verify -Dnative -Dquarkus.container-image.build=true
Output of
uname -a
orver
6.5.0-35-generic
Output of
java -version
openjdk version "22-ea" 2024-03-19
Mandrel or GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.10.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.6
Additional information
No response
The text was updated successfully, but these errors were encountered: