Documentation ¶
Index ¶
- func AutomationConfigConfigMapExists(mdb *mdbv1.MongoDB) func(t *testing.T)
- func BasicConnectivity(mdb *mdbv1.MongoDB) func(t *testing.T)
- func Connect(mdb *mdbv1.MongoDB) error
- func CreateMongoDBResource(mdb *mdbv1.MongoDB, ctx *f.TestCtx) func(*testing.T)
- func DeletePod(mdb *mdbv1.MongoDB, podNum int) func(*testing.T)
- func IsReachableDuring(mdb *mdbv1.MongoDB, interval time.Duration, testFunc func()) func(*testing.T)
- func MongoDBReachesRunningPhase(mdb *mdbv1.MongoDB) func(t *testing.T)
- func Scale(mdb *mdbv1.MongoDB, newMembers int) func(*testing.T)
- func StatefulSetIsReady(mdb *mdbv1.MongoDB) func(t *testing.T)
- func Status(mdb *mdbv1.MongoDB, expectedStatus mdbv1.MongoDBStatus) func(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicConnectivity ¶
BasicConnectivity returns a test function which performs a basic MongoDB connectivity test
func Connect ¶
Connect performs a connectivity check by initializing a mongo client and inserting a document into the MongoDB resource
func CreateMongoDBResource ¶
CreateMongoDBResource creates the MongoDB resource
func IsReachableDuring ¶
func IsReachableDuring(mdb *mdbv1.MongoDB, interval time.Duration, testFunc func()) func(*testing.T)
IsReachableDuring periodically tests connectivity to the provided MongoDB resource during execution of the provided functions. This function can be used to ensure The MongoDB is up throughout the test.
func MongoDBReachesRunningPhase ¶
MongoDBReachesRunningPhase ensure the MongoDB resource reaches the Running phase
func StatefulSetIsReady ¶
StatefulSetIsReady ensures that the underlying stateful set reaches the running state
Types ¶
This section is empty.