Documentation
¶
Index ¶
- func AutomationConfigConfigMapExists(mdb *mdbv1.MongoDB) func(t *testing.T)
- func AutomationConfigVersionHasTheExpectedVersion(mdb *mdbv1.MongoDB, expectedVersion int) func(t *testing.T)
- func BasicConnectivity(mdb *mdbv1.MongoDB) func(t *testing.T)
- func BasicFunctionality(mdb *mdbv1.MongoDB) func(*testing.T)
- func ChangeVersion(mdb *mdbv1.MongoDB, newVersion string) func(*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 HasFeatureCompatibilityVersion(mdb *mdbv1.MongoDB, fcv string, tries int) func(t *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 StatefulSetHasOwnerReference(mdb *mdbv1.MongoDB, expectedOwnerReference metav1.OwnerReference) func(t *testing.T)
- func StatefulSetHasUpdateStrategy(mdb *mdbv1.MongoDB, strategy appsv1.StatefulSetUpdateStrategyType) func(t *testing.T)
- func StatefulSetIsReady(mdb *mdbv1.MongoDB) func(t *testing.T)
- func StatefulSetIsUpdated(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 AutomationConfigVersionHasTheExpectedVersion ¶ added in v0.0.7
func BasicConnectivity ¶
BasicConnectivity returns a test function which performs a basic MongoDB connectivity test
func BasicFunctionality ¶ added in v0.0.6
func ChangeVersion ¶ added in v0.0.6
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 HasFeatureCompatibilityVersion ¶ added in v0.0.6
HasFeatureCompatibilityVersion verifies that the FeatureCompatibilityVersion is set to `version`. The FCV parameter is not signaled as a non Running state, for this reason, this function checks the value of the parameter many times, based on the value of `tries`.
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 StatefulSetHasOwnerReference ¶ added in v0.0.6
func StatefulSetHasUpdateStrategy ¶ added in v0.0.6
func StatefulSetHasUpdateStrategy(mdb *mdbv1.MongoDB, strategy appsv1.StatefulSetUpdateStrategyType) func(t *testing.T)
StatefulSetHasUpdateStrategy verifies that the StatefulSet holding this MongoDB resource has the correct Update Strategy
func StatefulSetIsReady ¶
StatefulSetIsReady ensures that the underlying stateful set reaches the running state
func StatefulSetIsUpdated ¶ added in v0.0.6
StatefulSetIsUpdated ensures that all the Pods of the StatefulSet are in "Updated" condition.
Types ¶
This section is empty.