diff --git a/integration-tests/mongodb-rest-data-panache/src/main/resources/application.properties b/integration-tests/mongodb-rest-data-panache/src/main/resources/application.properties index 1662de97aef85..e5211725e5ba0 100644 --- a/integration-tests/mongodb-rest-data-panache/src/main/resources/application.properties +++ b/integration-tests/mongodb-rest-data-panache/src/main/resources/application.properties @@ -1,2 +1,3 @@ quarkus.mongodb.write-concern.journal=false quarkus.mongodb.database=test +quarkus.mongodb.devservices.enabled=false diff --git a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheIT.java b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheIT.java index 3215c0ae4c2c6..fd05a61b5c886 100644 --- a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheIT.java +++ b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheIT.java @@ -3,20 +3,17 @@ import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.test.common.DevServicesContext; import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -@DisabledOnOs(OS.WINDOWS) class MongoDbRestDataPanacheIT extends MongoDbRestDataPanacheTest { DevServicesContext context; @Test public void testDevServicesProperties() { - assertThat(context.devServicesProperties()).hasSize(1).containsKey("quarkus.mongodb.connection-string"); + assertThat(context.devServicesProperties()).isEmpty(); } } diff --git a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java index 79badf2d5ae31..5287ec9cce4a8 100644 --- a/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java +++ b/integration-tests/mongodb-rest-data-panache/src/test/java/io/quarkus/it/mongodb/rest/data/panache/MongoDbRestDataPanacheTest.java @@ -16,8 +16,6 @@ import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.condition.DisabledOnOs; -import org.junit.jupiter.api.condition.OS; import io.quarkus.test.common.QuarkusTestResource; import io.quarkus.test.common.ResourceArg; @@ -27,7 +25,6 @@ @QuarkusTest @QuarkusTestResource(value = MongoTestResource.class, initArgs = @ResourceArg(name = MongoTestResource.PORT, value = "37017")) -@DisabledOnOs(OS.WINDOWS) class MongoDbRestDataPanacheTest { private Author dostoevsky; diff --git a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java index 1f3e3c5b26699..169e84cae8b9b 100644 --- a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java +++ b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoReplicaSetTestResource.java @@ -166,7 +166,7 @@ public Map start() { startedServers = startReplicaSet(version, port, replicaSet); - return Collections.emptyMap(); + return Collections.singletonMap("quarkus.mongodb.hosts", String.format("127.0.0.1:%d", port)); } @Override diff --git a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java index 009fbae04d08e..3f59aada22e60 100644 --- a/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java +++ b/test-framework/mongodb/src/main/java/io/quarkus/test/mongodb/MongoTestResource.java @@ -70,7 +70,7 @@ public Map start() { .initializedWith(MongodArguments.defaults().withUseNoJournal(false))) .start(version); - return Collections.emptyMap(); + return Collections.singletonMap("quarkus.mongodb.hosts", String.format("127.0.0.1:%d", port)); } @Override