Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailWrapper ¶ added in v0.5.0
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 ¶
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.0
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.0
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.0
func (FailurePanic) String() string
String makes FailurePanic look like the old Ginkgo panic when printed.