Skip to content

Commit

Permalink
Retrieve from system properties the version of the Mongo docker image…
Browse files Browse the repository at this point in the history
… to be used for tests.
  • Loading branch information
nfsantos committed Apr 25, 2024
1 parent 5f58aa9 commit 65387ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
public class PipelinedMongoConnectionFailureIT {
private static final Logger LOG = LoggerFactory.getLogger(PipelinedMongoConnectionFailureIT.class);

private static final String MONGO_VERSION = System.getProperty("mongo.version", "5.0");
private static final String MONGO_IMAGE = "mongo:" + MONGO_VERSION;
private static final DockerImageName TOXIPROXY_IMAGE = DockerImageName.parse("ghcr.io/shopify/toxiproxy:2.6.0");
// We cannot use the MongoDockerRule/MongoConnectionFactory because they don't allow customizing the docker network
// used to launch the Mongo container.
private static final DockerImageName MONGODB_IMAGE = DockerImageName.parse("mongo:5.0");
private static final DockerImageName MONGODB_IMAGE = DockerImageName.parse(MONGO_IMAGE);
private static final int MONGODB_DEFAULT_PORT = 27017;

@Rule
Expand Down

0 comments on commit 65387ce

Please sign in to comment.