Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Integration tests require a mongod running on localhost:33333. If your // mongod uses SSL you need to specify the "ssl" type below, and ditto for // if your mongod requires auth. // First checks for a URI for a Mongod in the env variable TOOLS_TESTING_MONGOD. If it does not find it, looks on localhost:33333 IntegrationTestType = "TOOLS_TESTING_INTEGRATION" // Unit tests don't require a real mongod. They may still do file I/O. UnitTestType = "TOOLS_TESTING_UNIT" // Kerberos tests are a special type of integration test that test tools // with Kerberos authentication against the drivers Kerberos testing cluster // because setting up a KDC every time is too brittle and expensive. // (See https://wiki.mongodb.com/display/DH/Testing+Kerberos) KerberosTestType = "TOOLS_TESTING_KERBEROS" // "TOOLS_TESTING_SSL" and "TOOLS_TESTING_AUTH" are used to configure integration tests to run against // different mongod configurations. "TOOLS_TESTING_SSL" will configure the integration tests // to expect an SSL-enabled mongod on localhost:33333. "TOOLS_TESTING_AUTH" will do the same // for an auth-enabled mongod on localhost:33333. SSLTestType = "TOOLS_TESTING_SSL" AuthTestType = "TOOLS_TESTING_AUTH" // For now mongoreplay tests are unique, and will have to be explicitly run. MongoReplayTestType = "TOOLS_TESTING_REPLAY" // For testing options parsing. Requires an SRV URI in the ATLAS_URI environment variable. SRVConnectionStringTestType = "TOOLS_TESTING_SRV" // For testing AWS auth via an STS AssumeRole request. AWSAuthTestType = "TOOLS_TESTING_AWS_AUTH" )
Variables ¶
This section is empty.
Functions ¶
func HasTestType ¶
func SkipUnlessBenchmarkType ¶
func SkipUnlessTestType ¶
Skip the test if the specified type is not being run.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.