e2eutil

package
v0.5.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 16 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 CreateBKCluster added in v0.5.2

CreateBKCluster creates a BookkeeperCluster CR with the desired spec

func CreatePravegaCluster added in v0.5.2

func CreatePravegaCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster) (*api.PravegaCluster, error)

CreatePravegaCluster creates a PravegaCluster CR with the desired spec

func CreateZKCluster added in v0.5.2

CreateZKCluster creates a ZookeeperCluster CR with the desired spec

func DeleteBKCluster added in v0.5.2

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 DeletePravegaCluster added in v0.5.2

func DeletePravegaCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster) error

DeletePravegaCluster deletes the PravegaCluster CR specified by cluster spec

func DeleteZKCluster added in v0.5.2

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

DeleteZKCluster deletes the ZookeeperCluster CR specified by cluster spec

func GetBKCluster added in v0.5.2

GetBKCluster returns the latest BookkeeperCluster CR

func GetPravegaCluster added in v0.5.2

func GetPravegaCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster) (*api.PravegaCluster, error)

GetPravegaCluster returns the latest PravegaCluster CR

func GetZKCluster added in v0.5.2

GetZKCluster returns the latest ZookeeperCluster CR

func InitialSetup added in v0.5.2

func InitialSetup(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, namespace string) error

func NewClusterWithVersion

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

func NewDefaultCluster

func NewDefaultCluster(namespace string) *api.PravegaCluster

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

func NewTestWriteReadJob

func NewTestWriteReadJob(namespace string, controllerUri string) *batchv1.Job

NewTestWriteReadJob returns a Job that can test pravega cluster by running a sample

func NewTier2

func NewTier2(namespace string) *corev1.PersistentVolumeClaim

func RestartTier2

func RestartTier2(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, namespace string) error

func UpdatePravegaCluster added in v0.5.2

func UpdatePravegaCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster) error

UpdatePravegaCluster updates the PravegaCluster CR

func WaitForBKClusterToTerminate added in v0.5.2

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 WaitForBookkeeperClusterToBecomeReady added in v0.5.2

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

WaitForBooClusterToBecomeReady will wait until all Bookkeeper cluster pods are ready

func WaitForPravegaClusterToBecomeReady added in v0.5.2

func WaitForPravegaClusterToBecomeReady(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster, size int) error

WaitForPravegaClusterToBecomeReady will wait until all cluster pods are ready

func WaitForPravegaClusterToTerminate added in v0.5.2

func WaitForPravegaClusterToTerminate(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster) error

WaitForPravegaClusterToTerminate will wait until all cluster pods are terminated

func WaitForPravegaClusterToUpgrade added in v0.5.2

func WaitForPravegaClusterToUpgrade(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster, targetVersion string) error

WaitForPravegaClusterToUpgrade will wait until all pods are upgraded

func WaitForZKClusterToTerminate added in v0.5.2

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

WaitForZKClusterToTerminate will wait until all zookeeper cluster pods are terminated

func WaitForZookeeperClusterToBecomeReady added in v0.5.2

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

WaitForZookeeperClusterToBecomeReady will wait until all zookeeper cluster pods are ready

func WriteAndReadData

func WriteAndReadData(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, p *api.PravegaCluster) error

WriteAndReadData writes sample data and reads it back from the given Pravega cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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