e2eutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RetryInterval        = time.Second * 10
	Timeout              = time.Second * 300
	CleanupRetryInterval = time.Second * 5
	CleanupTimeout       = time.Second * 20
)

Functions

func ExecPod

func ExecPod(t *testing.T, f *framework.Framework, namespace string, pod *corev1.Pod, cmd []string) (string, string,
	error)

func ExecPodFromName

func ExecPodFromName(t *testing.T, f *framework.Framework, namespace string, podName string, cmd string) (string,
	string,
	error)

func HelperInitCluster

func HelperInitCluster(t *testing.T, f *framework.Framework, ctx *framework.TestCtx, name, namespace string) *api.CassandraCluster

HelperInitCluster goal is to create objects from the testdata/file.yaml pointed by name. for now we can create Secret or CassandraCluster, we may add more objects in futur if needed

func HelperInitOperator

func HelperInitOperator(t *testing.T) (*framework.TestCtx, *framework.Framework)

func WaitForStatefulset

func WaitForStatefulset(t *testing.T, kubeclient kubernetes.Interface, namespace, name string, replicas int,
	retryInterval, timeout time.Duration) error

func WaitForStatusDone

func WaitForStatusDone(t *testing.T, f *framework.Framework, namespace, name string,
	retryInterval, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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