Skip to content

Commit

Permalink
Update version of MongoDB used for testing to 7.0
Browse files Browse the repository at this point in the history
It is not the latest (8.0 was released in November) but it's probably
the most common used and also it's consistent with the version used as a
container.

Hopefully, this will be compatible with Ubuntu 22 and 24.
  • Loading branch information
gsmet committed Dec 17, 2024
1 parent d7b25ed commit c930b52
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void startMongoDatabase() throws IOException {
String uri = getConfiguredConnectionString();
// This switch allow testing against a running mongo database.
if (uri == null) {
Version.Main version = Version.Main.V4_4;
Version.Main version = Version.Main.V7_0;
int port = 27018;
LOGGER.infof("Starting Mongo %s on port %s", version, port);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.quarkus.mongodb;

import static io.quarkus.mongodb.MongoTestBase.getConfiguredConnectionString;
import static org.awaitility.Awaitility.await;
import static org.awaitility.Durations.ONE_MINUTE;
import static org.awaitility.Durations.ONE_SECOND;

Expand Down Expand Up @@ -47,7 +46,7 @@ public static void startMongoDatabase() {

// This switch allow testing against a running mongo database.
if (uri == null) {
startedServers = startReplicaSet(Version.Main.V4_4, 27018, "test001");
startedServers = startReplicaSet(Version.Main.V7_0, 27018, "test001");
} else {
LOGGER.infof("Using existing Mongo %s", uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void startMongoDatabase() throws IOException {
String uri = getConfiguredConnectionString();
// This switch allow testing against a running mongo database.
if (uri == null) {
Version.Main version = Version.Main.V4_4;
Version.Main version = Version.Main.V7_0;
int port = 27018;
LOGGER.infof("Starting Mongo %s on port %s", version, port);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void startMongoDatabase() {

// This switch allow testing against a running mongo database.
if (uri == null) {
startedServers = startReplicaSet(Version.Main.V4_4, 27018, "test001");
startedServers = startReplicaSet(Version.Main.V7_0, 27018, "test001");
} else {
LOGGER.infof("Using existing Mongo %s", uri);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static IFeatureAwareVersion version(Map<String, String> initArgs) {
return versionArg.<IFeatureAwareVersion> map(Version.Main::valueOf)
.orElseGet(() -> versionArg.map(
versionStr -> Versions.withFeatures(de.flapdoodle.embed.process.distribution.Version.of(versionStr)))
.orElse(Version.Main.V4_4));
.orElse(Version.Main.V7_0));
}

public static void forceExtendedSocketOptionsClassInit() {
Expand Down

0 comments on commit c930b52

Please sign in to comment.