cmd

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventCmdStart  = event.Name("CmdStart")
	EventCmdEnd    = event.Name("CmdEnd")
	EventCmdStdout = event.Name("CmdStdout")
	EventCmdStderr = event.Name("CmdStderr")
)

event names for this plugin.

Variables

Events defines the events that a TestStep is allow to emit

View Source
var Name = "Cmd"

Name is the name used to look this plugin up.

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 Cmd test step.

Types

type Cmd

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

Cmd is used to run arbitrary commands as test steps.

func (Cmd) Name

func (ts Cmd) Name() string

Name returns the plugin name.

func (*Cmd) Run

Run executes the cmd step.

func (*Cmd) ValidateParameters

func (ts *Cmd) 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