e2eutil

package
v0.0.8-prerelease Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestMongoDB

func NewTestMongoDB(name string) mdbv1.MongoDB

func UpdateMongoDBResource

func UpdateMongoDBResource(original *mdbv1.MongoDB, updateFunc func(*mdbv1.MongoDB)) error

UpdateMongoDBResource applies the provided function to the most recent version of the MongoDB resource and retries when there are conflicts

func WaitForConfigMapToExist

func WaitForConfigMapToExist(cmName string, retryInterval, timeout time.Duration) (corev1.ConfigMap, error)

WaitForConfigMapToExist waits until a ConfigMap of the given name exists using the provided retryInterval and timeout

func WaitForMongoDBToReachPhase

func WaitForMongoDBToReachPhase(t *testing.T, mdb *mdbv1.MongoDB, phase mdbv1.Phase, retryInterval, timeout time.Duration) error

WaitForMongoDBToReachPhase waits until the given MongoDB resource reaches the expected phase

func WaitForStatefulSetToBeReady

func WaitForStatefulSetToBeReady(t *testing.T, mdb *mdbv1.MongoDB, retryInterval, timeout time.Duration) error

WaitForStatefulSetToBeReady waits until all replicas of the StatefulSet with the given name have reached the ready status

func WaitForStatefulSetToBeUpdated added in v0.0.6

func WaitForStatefulSetToBeUpdated(t *testing.T, mdb *mdbv1.MongoDB, retryInterval, timeout time.Duration) error

waitForStatefulSetToBeUpdated waits until all replicas of the StatefulSet with the given name are updated.

func WaitForStatefulSetToExist

func WaitForStatefulSetToExist(stsName string, retryInterval, timeout time.Duration) (appsv1.StatefulSet, error)

WaitForStatefulSetToExist waits until a StatefulSet of the given name exists using the provided retryInterval and timeout

func WaitForStatefulSetToHaveUpdateStrategy added in v0.0.6

func WaitForStatefulSetToHaveUpdateStrategy(t *testing.T, mdb *mdbv1.MongoDB, strategy appsv1.StatefulSetUpdateStrategyType, retryInterval, timeout time.Duration) error

WaitForStatefulSetToHaveUpdateStrategy waits until all replicas of the StatefulSet with the given name have reached the ready status

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL