Interface MongoDbDeployment

All Superinterfaces:
AutoCloseable, org.testcontainers.lifecycle.Startable
All Known Implementing Classes:
MongoDbReplicaSet, MongoDbShardedCluster

public interface MongoDbDeployment extends org.testcontainers.lifecycle.Startable
A MongoDB deployment with arbitrary topology
  • Method Details

    • getConnectionString

      String getConnectionString()
      Returns:
      the standard connection string for this MongoDB deployment.
    • getAuthConnectionString

      default String getAuthConnectionString(String username, String password, String authSource)
    • getNoAuthConnectionString

      default String getNoAuthConnectionString()