e2e

package
v0.17.1-0...-962f10e Latest Latest
Warning

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

Go to latest
Published: May 12, 2015 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadEvents

func BadEvents(events []*api.Event) int

Prints the histogram of the events and returns the number of bad events.

func CheckCadvisorHealthOnAllNodes

func CheckCadvisorHealthOnAllNodes(c *client.Client, timeout time.Duration)

func ClusterLevelLoggingWithElasticsearch

func ClusterLevelLoggingWithElasticsearch(c *client.Client)

ClusterLevelLoggingWithElasticsearch is an end to end test for cluster level logging.

func DeleteRC

func DeleteRC(c *client.Client, ns, name string) error

Delete a Replication Controller and all pods it spawned

func Failf

func Failf(format string, a ...interface{})

func HighLatencyRequests

func HighLatencyRequests(c *client.Client, threshold time.Duration, ignoredResources util.StringSet) (int, error)

Prints summary metrics for request types with latency above threshold and returns number of such request types.

func LaunchNetTestPodPerNode

func LaunchNetTestPodPerNode(nodes *api.NodeList, name string, c *client.Client, ns string) []string

func Logf

func Logf(format string, a ...interface{})

func ResizeRC

func ResizeRC(c *client.Client, ns, name string, size uint) error

func RunE2ETests

func RunE2ETests(context *TestContextType, orderseed int64, times int, reportDir string, testList []string)

Run each Go end-to-end-test. This function assumes the creation of a test cluster.

func RunRC

func RunRC(c *client.Client, name string, ns, image string, replicas int) error

RunRC Launches (and verifies correctness) of a Replication Controller It will waits for all pods it spawns to become "Running". It's the caller's responsibility to clean up externally (i.e. use the namespace lifecycle for handling cleanup).

func SSH

func SSH(cmd, host, provider string) (string, string, int, error)

SSH synchronously SSHs to a node running on provider and runs cmd. If there is no error performing the SSH, the stdout, stderr, and exit code are returned.

func ServeImageOrFail

func ServeImageOrFail(c *client.Client, test string, image string)

A basic test to check the deployment of an image using a replication controller. The image serves its hostname which is checked for each replica.

func VerifyContainersAreNotFailed

func VerifyContainersAreNotFailed(pod api.Pod, restartMax int) error

VerifyContainersAreNotFailed confirms that containers didn't enter an invalid state. For example, too many restarts, or non nill Termination, and so on.

Types

type CloudConfig

type CloudConfig struct {
	ProjectID  string
	Zone       string
	MasterName string

	Provider cloudprovider.Interface
}

type LatencyMetric

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

LatencyMetrics stores data about request latency at a given quantile broken down by verb (e.g. GET, PUT, LIST) and resource (e.g. pods, services).

func ReadLatencyMetrics

func ReadLatencyMetrics(c *client.Client) ([]LatencyMetric, error)

type TestContextType

type TestContextType struct {
	KubeConfig  string
	KubeContext string
	AuthConfig  string
	CertDir     string
	Host        string
	RepoRoot    string
	Provider    string
	CloudConfig CloudConfig
}

Jump to

Keyboard shortcuts

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