Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MongodbReplsetName = os.Getenv(envMongoDBReplsetName) MongodbHost = "127.0.0.1" MongodbHostname = "localhost" MongodbPrimaryPort = os.Getenv(envMongoDBPrimaryPort) MongodbSecondary1Port = os.Getenv(envMongoDBSecondary1Port) MongodbSecondary2Port = os.Getenv(envMongoDBSecondary2Port) MongodbAdminUser = os.Getenv(envMongoDBAdminUser) MongodbAdminPassword = os.Getenv(envMongoDBAdminPassword) MongodbTimeout = time.Duration(10) * time.Second )
Functions ¶
func DoSkipTest ¶
DoSkipTest handles the conditional skipping of tests, based on the output of .Enabled()
func Enabled ¶
func Enabled() bool
Enabled returns a boolean reflecting whether testing against Mongodb should occur
func GetSession ¶
GetSession returns a *mgo.Session configured for testing against a MongoDB Primary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.