kubernetesk8s.io/kubernetes/test/e2e_node Index | Files | Directories

package e2e_node

import "k8s.io/kubernetes/test/e2e_node"

Index

Functions

func Retry

func Retry(maxWait time.Duration, wait time.Duration, retry RetryFn) []error

Retry retries the RetryFn for a maximum of maxWait time. The wait duration is waited between retries. If the success condition is not met in maxWait time, the list of encountered errors is returned. If successful returns an empty list. Example:

Expect(Retry(time.Minute*1, time.Second*2, func() error {
   if success {
     return nil
   } else {
     return errors.New("Failed")
   }
}).To(BeNil(), fmt.Sprintf("Failed"))

Types

type RetryFn

type RetryFn func() error

RetryFn represents a retryable test condition. It returns an error if the condition is not met otherwise returns nil for success.

Source Files

doc.go util.go

Directories

PathSynopsis
test/e2e_node/environmentBuild the binary with `go build conformance.go`, then run the conformance binary on a node candidate.
test/e2e_node/gcloud
test/e2e_node/runnerTo run the e2e tests against one or more hosts on gce: $ go run run_e2e.go --hosts <comma separated hosts> Requires gcloud compute ssh access to the hosts
Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
darwin/amd64
Imports
1 packages
Last checked
47 seconds ago

Tools for package owners.