e2eutil

package
v0.1.3-test2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RetryInterval        = time.Second * 5
	Timeout              = time.Second * 60
	CleanupRetryInterval = time.Second * 1
	CleanupTimeout       = time.Second * 5
	ReadyTimeout         = time.Minute * 5
	UpgradeTimeout       = time.Minute * 10
	TerminateTimeout     = time.Minute * 2
	VerificationTimeout  = time.Minute * 5
)

Functions

func CheckEvents

func CheckEvents(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster, event string) (bool, error)

func CreateBKCluster

CreateBKCluster creates a BookkeeperCluster CR with the desired spec

func CreateBKClusterWithCM

func CreateBKClusterWithCM(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster, cm string) (*bkapi.BookkeeperCluster, error)

CreateBKCluster creates a BookkeeperCluster CR with the desired spec

func CreateConfigMap

func CreateConfigMap(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, cm *corev1.ConfigMap) error

CreateConfigMap creates the configmap specified

func DeleteBKCluster

func DeleteBKCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster) error

DeleteBKCluster deletes the BookkeeperCluster CR specified by cluster spec

func DeleteConfigMap

func DeleteConfigMap(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, cm *corev1.ConfigMap) error

DeleteConfigMap deletes the configmap specified

func DeletePods

func DeletePods(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster, size int) error

func GetBKCluster

GetBKCluster returns the latest BookkeeperCluster CR

func NewClusterWithVersion

func NewClusterWithVersion(namespace, version string) *api.BookkeeperCluster

func NewConfigMap

func NewConfigMap(namespace, name string, pravega string) *corev1.ConfigMap

func NewDefaultCluster

func NewDefaultCluster(namespace string) *api.BookkeeperCluster

NewDefaultCluster returns a cluster with an empty spec, which will be filled with default values

func UpdateBKCluster

func UpdateBKCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster) error

UpdateBkCluster updates the BookkeeperCluster CR

func WaitForBKClusterToRollback

func WaitForBKClusterToRollback(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster, targetVersion string) error

WaitForBookkeeperClusterToRollback will wait until all pods are rolled back

func WaitForBKClusterToTerminate

func WaitForBKClusterToTerminate(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster) error

WaitForBKClusterToTerminate will wait until all Bookkeeper cluster pods are terminated

func WaitForBKClusterToUpgrade

func WaitForBKClusterToUpgrade(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster, targetVersion string) error

WaitForBookkeeperClusterToUpgrade will wait until all pods are upgraded

func WaitForBookkeeperClusterToBecomeReady

func WaitForBookkeeperClusterToBecomeReady(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster) error

WaitForBookkeeperClusterToBecomeReady will wait until all Bookkeeper cluster pods are ready

func WaitForCMBKClusterToUpgrade

func WaitForCMBKClusterToUpgrade(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, b *bkapi.BookkeeperCluster) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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