test

package
v0.0.0-...-2645c98 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 9 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