testing

package
v0.0.0-...-56a9bdf Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StatusInit     = "init"
	StatusReady    = "ready"
	StatusTesting  = "testing"
	StatusFinished = "finished"
	StatusFail     = "fail"
)

Testing status constants.

Variables

This section is empty.

Functions

func GetTestletPath

func GetTestletPath(testletName, optDir string) (string, error)

GetTestletPath generates whatever path is needed to reach the given testlet It first determines if the referenced testlet is native or not - if it is native, then only the name needs to be returned (all native testlets must be in the path). If it is a custom testlet, then it will generate the full path to the testlet, ensure it is a valid path, and if so, return that full path back to the caller.

Types

type Testlet

type Testlet interface {

	// Run is the "workflow" function for a testlet. All testing takes place here
	// (or in a function called within)
	Run(target string, args []string, timeLimit int) (metrics map[string]string, err error)
}

Testlet defines what a testlet should look like if built in native go and compiled with the agent

Jump to

Keyboard shortcuts

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