Releases: silaev/mongodb-replica-set
Releases · silaev/mongodb-replica-set
Support for MongoDB 5+
0.4.3
Add ability to use host.docker.internal
What's Changed
🚀Features
- Add ability to use
host.docker.internal
viaMongoDbReplicaSet.builder().useHostDockerInternal(true|false).build();
or the system property mongoReplicaSetProperties.useHostDockerInternal=true|false. If true then usehost.docker.internal
of Docker, otherwise takedockerhost
of Qoomon docker-host (default value is false to support all Docker versions). Make sure that your OS host file includes one of them. All new Docker versions support the first variant.
Code stabilization
What's Changed
🧹 Other Changes
- Fix incorrect json representation coming from framed stdout;
- Fix waiting conditions;
- Add retry to provisioning replica-set;
- Add GitHub Actions.
Adjust to MongoDB 4.4.0, code stabilization
What's Changed
🚀Features
- Adjust to MongoDB 4.4.0;
- Add slaveDelayNumber;
- Split connectNodeToNetwork into proper methods for soft and hard connections.
📖 Examples
- Change MongoDbDelayedMembersITTest to possibility turn delayed node into secondary.
🧹 Other Changes
- Code stabilization.
0.3.1
Fault tolerance test support
What's Changed
🚀Features
- Stop or kill a MongoDB node
- Disconnect a MongoDB node from network
- Connect a MongoDB node to network (with or without replica set reconfiguration)
- Toxiproxy for soft disconnections
- Wait for master re-election, wait for all MongoDB nodes up/down etc.
- Get arbiter/master/secondary MongoDB node
📖 Examples
- Add MongoDbReplicaSetDistributionTestITTest to simulate failures between 2 data centers when one or another goes down (ReadPreference, master reelection, support for write/read operations)
- Add MongoDbReplicaSetFaultTolerancePSAApiITTest and MongoDbReplicaSetFaultTolerancePSSApiITTest to test failovers for Primary with a Secondary and an Arbiter (PSA) and Primary with Two Secondary Members (P-S-S)
🐛 Bug Fixes
- Fix container exit code check
🧹 Other Changes
- Add Testcontainers and JUnit BOM