test

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: AGPL-3.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(t *testing.T, tc Testcase, p plugins.Plugin) error

Types

type Testcase

type Testcase struct {
	// Testcase description
	Description string

	// Target port for test
	Port int

	// Target protocol for test (TCP, UDP, TCPTLS, etc.)
	Protocol plugins.Protocol

	// Function used to determine whether testcase succeeded or not
	Expected func(*plugins.Service) bool

	// Docker containers to run
	RunConfig dockertest.RunOptions
}

Jump to

Keyboard shortcuts

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