integration

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorRequirements = errors.Errorf("missing requirements")

Functions

func OfficialImages

func OfficialImages(names ...string) map[string]string

func Run

func Run(t *testing.T, testCases []Test, opt ...TestOpt)

Types

type Sandbox

type Sandbox interface {
	Address() string
	PrintLogs(*testing.T)
	Cmd(...string) *exec.Cmd
	NewRegistry() (string, error)
	Rootless() bool
	Value(string) interface{} // chosen matrix value
}

type SandboxConf

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

type SandboxOpt

type SandboxOpt func(*SandboxConf)

func WithMirror

func WithMirror(h string) SandboxOpt

type Test

type Test func(*testing.T, Sandbox)

type TestConf

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

type TestOpt

type TestOpt func(*TestConf)

func WithMatrix

func WithMatrix(key string, m map[string]interface{}) TestOpt

func WithMirroredImages

func WithMirroredImages(m map[string]string) TestOpt

type Worker

type Worker interface {
	New(...SandboxOpt) (Sandbox, func() error, error)
	Name() string
}

func List

func List() []Worker

Jump to

Keyboard shortcuts

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