waitport

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

Overview

Package waitport provides an ability of waiting for a port on remote host to be opened for listening

Index

Constants

View Source
const (
	EventCmdStart = event.Name(Name + "Start")
	EventCmdEnd   = event.Name(Name + "End")
)

event names for this plugin.

View Source
const Name = "waitport"

Name is the name used to look this plugin up.

Variables

Events defines the events that a TestStep is allow to emit

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 WaitPort

type WaitPort struct {
}

WaitPort provides an ability of waiting for a port on remote host to be opened for listening

func (*WaitPort) Name

func (ts *WaitPort) Name() string

Name returns the plugin name.

func (*WaitPort) Run

func (ts *WaitPort) Run(
	ctx xcontext.Context,
	ch test.TestStepChannels,
	ev testevent.Emitter,
	stepsVars test.StepsVariables,
	inputParams test.TestStepParameters,
	resumeState json.RawMessage,
) (json.RawMessage, error)

Run executes the cmd step.

func (*WaitPort) ValidateParameters

func (ts *WaitPort) ValidateParameters(ctx 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