Documentation ¶
Overview ¶
Package testutil implements functions for filtering and configuring tests.
Index ¶
- Variables
- func CompareFCV(x, y string) (int, error)
- func GetAuthArgs() []string
- func GetAuthOptions() options.Auth
- func GetBareArgs() []string
- func GetBareSession() (*mongo.Client, error)
- func GetBareSessionProvider() (*db.SessionProvider, *options.ToolOptions, error)
- func GetFCV(s *mongo.Client) string
- func GetKerberosOptions() (*options.ToolOptions, error)
- func GetSSLArgs() []string
- func GetSSLOptions() commonOpts.SSL
- func MergeOplogStreams(input [][]db.Oplog) []db.Oplog
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserAdmin = "uAdmin" UserAdminPassword = "password" CreatedUserNameEnv = "TOOLS_TESTING_AUTH_USERNAME" CreatedUserPasswordEnv = "TOOLS_TESTING_AUTH_PASSWORD" )
View Source
var (
WinKerberosPwdEnv = "MONGODB_KERBEROS_PASSWORD"
)
Functions ¶
func CompareFCV ¶
CompareFCV compares two strings as dot-delimited tuples of integers
func GetAuthArgs ¶
func GetAuthArgs() []string
func GetAuthOptions ¶
func GetBareArgs ¶
func GetBareArgs() []string
func GetBareSession ¶
GetBareSession returns an mgo.Session from the environment or from a default host and port.
func GetBareSessionProvider ¶
func GetBareSessionProvider() (*db.SessionProvider, *options.ToolOptions, error)
GetBareSessionProvider returns a session provider from the environment or from a default host and port.
func GetFCV ¶
GetFCV returns the featureCompatibilityVersion string for an mgo Session or the empty string if it can't be found.
func GetKerberosOptions ¶
func GetKerberosOptions() (*options.ToolOptions, error)
func GetSSLArgs ¶
func GetSSLArgs() []string
func GetSSLOptions ¶
func GetSSLOptions() commonOpts.SSL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.