Documentation ¶
Index ¶
- func BadEvents(events []*api.Event) int
- func CheckCadvisorHealthOnAllNodes(c *client.Client, timeout time.Duration)
- func ClusterLevelLoggingWithElasticsearch(c *client.Client)
- func DeleteRC(c *client.Client, ns, name string) error
- func Failf(format string, a ...interface{})
- func HighLatencyRequests(c *client.Client, threshold time.Duration, ignoredResources util.StringSet) (int, error)
- func LaunchNetTestPodPerNode(nodes *api.NodeList, name string, c *client.Client, ns string) []string
- func Logf(format string, a ...interface{})
- func RunE2ETests(context *TestContextType, orderseed int64, times int, reportDir string, ...)
- func RunRC(c *client.Client, name string, ns, image string, replicas int) error
- func SSH(cmd, host, provider string) (string, string, int, error)
- func ServeImageOrFail(c *client.Client, test string, image string)
- func VerifyContainersAreNotFailed(pod api.Pod, restartMax int) error
- type CloudConfig
- type LatencyMetric
- type TestContextType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadEvents ¶ added in v0.16.1
Prints the histogram of the events and returns the number of bad events.
func CheckCadvisorHealthOnAllNodes ¶ added in v0.12.0
func ClusterLevelLoggingWithElasticsearch ¶ added in v0.14.0
ClusterLevelLoggingWithElasticsearch is an end to end test for cluster level logging.
func HighLatencyRequests ¶ added in v0.17.0
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 ¶ added in v0.15.0
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 ¶ added in v0.13.0
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 ¶ added in v0.17.0
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 ¶ added in v0.12.0
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.
Types ¶
type CloudConfig ¶ added in v0.15.0
type CloudConfig struct { ProjectID string Zone string MasterName string Provider cloudprovider.Interface }
type LatencyMetric ¶ added in v0.17.0
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 ¶ added in v0.17.0
func ReadLatencyMetrics(c *client.Client) ([]LatencyMetric, error)