teststep

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// A comma-delimited list of target IDs to fail on.
	FailTargetsParam = "FailTargets"
	// Alternatively, fail this percentage of targets at random.
	FailPctParam = "FailPct"
	// A comma-delimited list of target IDs to delay and by how much, ID=delay_ms.
	DelayTargetsParam = "DelayTargets"
)
View Source
const (
	StartedEvent      = event.Name("TestStartedEvent")
	FinishedEvent     = event.Name("TestFinishedEvent")
	FailedEvent       = event.Name("TestFailedEvent")
	StepRunningEvent  = event.Name("TestStepRunningEvent")
	StepFinishedEvent = event.Name("TestStepFinishedEvent")
)

Variables

View Source
var Name = "Test"

Functions

func Load

func Load() (string, test.TestStepFactory, []event.Name)

Load returns the name, factory and events which are needed to register the step.

func New

func New() test.TestStep

New initializes and returns a new TestStep.

Types

type Step

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

func (Step) Name

func (ts Step) Name() string

Name returns the name of the Step

func (*Step) Run

Run executes the example step.

func (*Step) ValidateParameters

func (ts *Step) ValidateParameters(_ xcontext.Context, params test.TestStepParameters) error

ValidateParameters validates the parameters associated to the TestStep

Jump to

Keyboard shortcuts

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