# Functions
AuthEnabled returns whether or not the cluster requires auth.
ClusterConnString returns the parsed ConnString for the cluster.
ClusterTopologyKind returns the topology kind of the cluster under test.
ClusterURI returns the connection string for the cluster.
CompareServerVersions compares two version number strings (i.e.
CreateCommandErrorResponse creates a response with a command error.
CreateCursorResponse creates a response for a cursor command.
CreateSuccessResponse creates a response for a successful operation with the given elements.
CreateWriteConcernErrorResponse creates a response with a write concern error.
CreateWriteErrorsResponse creates a response with one or more write errors.
DropEncryptedCollection drops a collection with EncryptedFields.
GlobalClient returns a Client connected to the cluster configured with read concern majority, write concern majority, and read preference primary.
GlobalTopology returns a Topology that's connected to the cluster.
IsCSFLEEnabled returns true if driver is built with Client Side Field Level Encryption support.
MergeSetupOptions combines the given *SetupOptions into a single *Options in a last one wins fashion.
MultiMongosLoadBalancerURI returns the URI for a load balancer fronting multiple mongoses.
New creates a new T instance with the given options.
NewOptions creates an empty Options instance.
NewSetupOptions creates an empty SetupOptions struct.
Serverless returns whether the test is running against a serverless instance.
ServerVersion returns the server version of the cluster.
SetFailPoint configures the provided fail point on the cluster under test using the provided Client.
SetRawFailPoint configures the fail point represented by the fp parameter on the cluster under test using the provided Client.
Setup initializes the current testing context.
SingleMongosLoadBalancerURI returns the URI for a load balancer fronting a single mongos.
SSLEnabled returns whether or not the cluster requires SSL.
Teardown cleans up resources initialized by Setup.
# Constants
Default specifies a client to the connection string in the MONGODB_URI env variable with command monitoring enabled.
These constants specify valid values for BatchIdentifier.
These constants specify valid values for TopologyKind.
Mock specifies a client that communicates with a mock deployment.
These constants specify valid values for BatchIdentifier.
Pinned specifies a client that is pinned to a single mongos in a sharded cluster.
Proxy specifies a client that proxies messages to the server and also stores parsed copies.
These constants specify valid values for TopologyKind.
These constants specify valid values for TopologyKind.
ShardedReplicaSet is a special case of sharded that requires each shard to be a replica set rather than a standalone server.
These constants specify valid values for TopologyKind.
TestDb specifies the name of default test database.
# Variables
LocalRc is the local read concern.
MajorityRc is the majority read concern.
MajorityWc is the majority write concern.
MockDescription is the server description used for the mock deployment.
PrimaryRp is the primary read preference.
SecondaryRp is the secondary read preference.
# Structs
Collection is used to configure a new collection created during a test.
CommandError is a representation of a command error from the server.
FailPoint is a representation of a server fail point.
FailPointData is a representation of the FailPoint.Data field.
FailPointMode is a representation of the Failpoint.Mode field.
Options is the type used to configure a new T instance.
ProxyMessage represents a sent/received pair of parsed wire messages.
ReceivedMessage represents a message received from the server.
RunOnBlock describes a constraint for a test.
SentMessage represents a message sent by the driver to the server.
SetupOptions is the type used to configure mtest setup.
T is a wrapper around testing.T.
WriteConcernError is a representation of a write concern error from the server.
WriteConcernErrorData is a representation of the FailPoint.Data.WriteConcern field.
WriteError is a representation of a write error from the server.
# Type aliases
BatchIdentifier specifies the keyword to identify the batch in a cursor response.
ClientType specifies the type of Client that should be created for a test.
TopologyKind describes the topology that a test is run on.