# Functions
DefaultTestClient returns the default MongoDB connection used for tests.
DefaultTestClientMongoS returns the mongos MongoDB connection used for tests.
GetenvDefault gets a variable from the environment and returns its value or the spacified default if the variable is empty.
GetImageNameForContainer returns image name and version of a running test container.
No description provided by the author
LoadJSON loads a file and returns the result of unmarshaling it into a bson.M structure.
No description provided by the author
SetupFakeResolver sets up Fake DNS server to resolve SRV records.
TestClient returns a new MongoDB connection to the specified server port.
# Constants
MongoDBConfigServer1Port MongoDB config server primary Port.
MongoDBS1PrimaryPort MongoDB Shard 1 Primary Port.
MongoDBS1Secondary1Port MongoDB Shard 1 Secondary 1 Port.
MongoDBS1Secondary2Port MongoDB Shard 1 Secondary 2 Port.
MongoDBStandAloneEncryptedPort MongoDB standalone encrypted instance Port.
MongoDBStandAlonePort MongoDB stand alone instance Port.
MongosPort MongoDB mongos Port.