tester

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectResponse

func ExpectResponse(ctx context.Context, endpoint string, expectedResponse string) error

func PortIsBound

func PortIsBound(port int, timeout time.Duration) bool

PortIsBound checks if a given TCP port is bound on the local network interface.

Types

type ExoTest

type ExoTest struct {
	Test       func(ctx context.Context, t ExoTester) error
	FixtureDir string
}

type ExoTester

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

func MakeExoTester

func MakeExoTester(exoBinPath, fixtureBasePath string, test ExoTest) ExoTester

func (ExoTester) GetStatus

func (et ExoTester) GetStatus(ctx context.Context) (statusResult, error)

func (ExoTester) PS

func (et ExoTester) PS(ctx context.Context) ([]psProcessInfo, error)

func (ExoTester) RunCmd

func (et ExoTester) RunCmd(ctx context.Context, program string, arguments []string) (stdout, stderr string, err error)

Runs an exo CLI command and blocks until it terminates.

func (ExoTester) RunExo

func (et ExoTester) RunExo(ctx context.Context, arguments ...string) (stdout, stderr string, err error)

Runs an exo CLI command and blocks until it terminates.

func (ExoTester) RunTest

func (et ExoTester) RunTest(ctx context.Context, test ExoTest) (io.Reader, error)

func (ExoTester) StartDaemon

func (et ExoTester) StartDaemon(ctx context.Context) error

func (ExoTester) StopDaemon

func (et ExoTester) StopDaemon(ctx context.Context) error

func (ExoTester) WaitTillProcessesReachState

func (et ExoTester) WaitTillProcessesReachState(ctx context.Context, state string, names []string) error

Jump to

Keyboard shortcuts

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