quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.73k stars 2.67k forks source link

Integration test fails to start mongo with Liquibase #42453

Closed vkn closed 2 months ago

vkn commented 2 months ago

Describe the bug

Mongodb dev services don't start if quarkus.liquibase-mongodb.migrate-at-start=true when running @QuarkusIntegrationTest

Expected behavior

devservices must start mongo container

Actual behavior

Mongodb is not starting

How to Reproduce?

mongodb-quickstart.tar.gz Unpack and run ./mvnw -Dquarkus.container-image.build=true verify

Output of uname -a or ver

No response

Output of java -version

openjdk version "21.0.3" 2024-04-16 LTS

Quarkus version or git rev

3.13.1

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.8

Additional information

No response

quarkus-bot[bot] commented 2 months ago

/cc @andrejpetras (liquibase), @geoand (liquibase), @gsmet (liquibase), @loicmathieu (mongodb)

gsmet commented 2 months ago

Actually, the container is started but the MongoDB client cannot connect to the container because it's using the wrong port.

I created a fix here: https://github.com/quarkusio/quarkus/pull/42472 .