e2eutil

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 11 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 * 5
	CleanupTimeout       = time.Second * 5
	ReadyTimeout         = time.Minute * 5
	UpgradeTimeout       = time.Minute * 10
	TerminateTimeout     = time.Minute * 5
	VerificationTimeout  = time.Minute * 5
)

Functions

func CheckAdminService added in v0.2.10

func CheckAdminService(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster) error

func CreateCluster

CreateCluster creates a ZookeeperCluster CR with the desired spec

func DeleteCluster

func DeleteCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster) error

DeleteCluster deletes the ZookeeperCluster CR specified by cluster spec

func DeletePods

func DeletePods(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster, size int) error

func GetCluster

GetCluster returns the latest ZookeeperCluster CR

func GetPods added in v0.2.13

func NewClusterWithEmptyDir added in v0.2.9

func NewClusterWithEmptyDir(namespace string) *api.ZookeeperCluster

func NewClusterWithVersion

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

func NewDefaultCluster

func NewDefaultCluster(namespace string) *api.ZookeeperCluster

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

func UpdateCluster

func UpdateCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster) error

UpdateCluster updates the ZookeeperCluster CR

func WaitForClusterToBecomeReady

func WaitForClusterToBecomeReady(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster, size int) error

WaitForClusterToBecomeReady will wait until all cluster pods are ready

func WaitForClusterToTerminate

func WaitForClusterToTerminate(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster) error

WaitForClusterToTerminate will wait until all cluster pods are terminated

func WaitForClusterToUpgrade

func WaitForClusterToUpgrade(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, z *api.ZookeeperCluster, targetVersion string) error

WaitForClusterToUpgrade will wait until all pods are upgraded

Types

This section is empty.

Jump to

Keyboard shortcuts

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