e2e

package
v0.70.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace     = "test-cassandra-operator"
	OperatorLabel = "cassandra-snapshot-test"
)
View Source
const (
	NodeStartDuration       = 120 * time.Second
	NodeTerminationDuration = 60 * time.Second
)

Variables

View Source
var (
	KubeClientset           *kubernetes.Clientset
	UseMockedImage          bool
	CassandraImageName      string
	CassandraReadinessProbe *v1.Probe
	RenameSnapshotCmd       string

	ImageUnderTest       string
	ResourceRequirements *v1.ResourceRequirements
)
View Source
var (
	TerminateImmediately = int64(0)
)

Functions

func BackdateSnapshotsForPods

func BackdateSnapshotsForPods(pods []*v1.Pod, backdatePeriod time.Duration)

func CassandraPodExistsWithLabels

func CassandraPodExistsWithLabels(labelsAndValues ...string) *v1.Pod

func DeleteCassandraResourcesInNamespace

func DeleteCassandraResourcesInNamespace(namespace string)

func Kubectl

func Kubectl(namespace, podName string, command ...string) (*exec.Cmd, []byte, error)

func PodIsReady

func PodIsReady(podToCheck *v1.Pod) func() (bool, error)

func PodIsTerminatedSuccessfully

func PodIsTerminatedSuccessfully(podToCheck *v1.Pod) func() (bool, error)

func PodIsTerminatedUnsuccessfully

func PodIsTerminatedUnsuccessfully(podToCheck *v1.Pod) func() (bool, error)

func RenameSnapshotsForPod

func RenameSnapshotsForPod(pod *v1.Pod, snapshotName string)

func RunCommandInCassandraSnapshotPod

func RunCommandInCassandraSnapshotPod(clusterName, command string, arg ...string) *v1.Pod

Types

type Snapshot

type Snapshot struct {
	Name         string
	Keyspace     string
	ColumnFamily string
}

func SnapshotListForPod

func SnapshotListForPod(pod *v1.Pod) ([]Snapshot, error)

type SnapshotMatcher

type SnapshotMatcher struct {
	// contains filtered or unexported fields
}

func BeForKeyspace

func BeForKeyspace(keyspace string) *SnapshotMatcher

func (*SnapshotMatcher) AndWithinTimeRange

func (m *SnapshotMatcher) AndWithinTimeRange(earliestTime time.Time, latestTime time.Time) types.GomegaMatcher

func (*SnapshotMatcher) FailureMessage

func (m *SnapshotMatcher) FailureMessage(actual interface{}) (message string)

func (*SnapshotMatcher) Match

func (m *SnapshotMatcher) Match(actual interface{}) (success bool, err error)

func (*SnapshotMatcher) NegatedFailureMessage

func (m *SnapshotMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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