Class MongoDbDatabaseProvider
java.lang.Object
io.debezium.connector.mongodb.junit.MongoDbDatabaseProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoDbReplicaSetConstructs testing MongoDB replica set with enabled authenticationstatic MongoDbReplicaSetConstructs the default testing MongoDB replica setprivate static MongoDbReplicaSet.Builderstatic MongoDbDeploymentCreates MongoDB replica-set abstraction either for external database.static MongoDbShardedClusterConstructs the default testing MongoDB sharded cluster
-
Field Details
-
MONGO_REPLICA_SIZE
- See Also:
-
MONGO_SHARD_SIZE
- See Also:
-
MONGO_SHARD_REPLICA_SIZE
- See Also:
-
MONGO_DOCKER_DESKTOP_PORT_PROPERTY
- See Also:
-
MONGO_DOCKER_DESKTOP_PORT_DEFAULT
- See Also:
-
-
Constructor Details
-
MongoDbDatabaseProvider
private MongoDbDatabaseProvider()
-
-
Method Details
-
dockerReplicaSetBuilder
-
dockerReplicaSet
Constructs the default testing MongoDB replica set- Returns:
- MongoDb Replica set
-
dockerAuthReplicaSet
Constructs testing MongoDB replica set with enabled authentication- Returns:
- MongoDb Replica set
-
mongoDbShardedCluster
Constructs the default testing MongoDB sharded cluster- Returns:
- MongoDb Replica set
-
externalOrDockerReplicaSet
Creates MongoDB replica-set abstraction either for external database. If no external database is configured then a local MongoDB replica-set is started (viaMongoDbReplicaSet.- Returns:
- MongoDb replica-set deployment
-