performance

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestResultKey  = "RESULT"
	TestPass       = "PASS"
	TestFail       = "FAIL"
	TestFailReason = "FAIL_REASON"
)

constants used in the pod logs, which we then use to build test results. TODO(Fredy-Z): we'll need a more robust way to export test results from the pod.

Variables

This section is empty.

Functions

func CreatePerfTestCase

func CreatePerfTestCase(metricValue float32, metricName, testName string) junit.TestCase

CreatePerfTestCase creates a perf test case with the provided name and value

func ParseTestResultFromLog

func ParseTestResultFromLog(client *test.KubeClient, podName, containerName, namespace string) (map[string]string, error)

ParseTestResultFromLog will parse the test result from the pod log TODO(Fredy-Z): this is very hacky and error prone, we need to find a better way to get the result.

Probably write the logs in JSON format as zipkin tracing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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