e2e

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailWrapper added in v0.5.5

func FailWrapper(message string, callerSkip ...int)

FailWrapper wraps ginkgo.Fail so that it logs failures as they occur and then panics with more useful information about the failure. This function will panic with a FailurePanic.

func RunE2ETests

func RunE2ETests(t *testing.T)

RunE2ETests checks configuration parameters (specified through flags) and then runs E2E tests using the Ginkgo runner. This function is called on each Ginkgo node in parallel mode.

func WaitForPMEMDriver added in v0.5.5

func WaitForPMEMDriver(c clientset.Interface)

WaitForPMEMDriver ensures that the PMEM-CSI driver is ready for use.

A relatively simple check is to check the nodes: if all nodes with "storage: pmem" also have a PMEM-CSI entry in the "csi.volume.kubernetes.io/nodeid" annotation, then kubelet has found the driver, which in turn implies that the node has been registered with the PMEM-CSI controller, because the node driver only makes its csi.sock available after that.

There's just one loophole: the annotation might be from a previous successful registration of the driver. For a fresh cluster as in the CI the check should be good enough.

Types

type FailurePanic added in v0.5.5

type FailurePanic struct {
	Message        string // The failure message passed to Fail
	Filename       string // The filename that is the source of the failure
	Line           int    // The line number of the filename that is the source of the failure
	FullStackTrace string // A full stack trace starting at the source of the failure
}

FailurePanic is the value that will be panicked from Fail.

func (FailurePanic) String added in v0.5.5

func (FailurePanic) String() string

String makes FailurePanic look like the old Ginkgo panic when printed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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