integration

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 33 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func InitContainerdWorker added in v0.5.0

func InitContainerdWorker()

func InitOCIWorker added in v0.5.0

func InitOCIWorker()

func NewRegistry added in v0.5.0

func NewRegistry(dir string) (url string, cl func() error, err error)

func OfficialImages

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

func Register added in v0.5.0

func Register(w Worker)

func Run

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

Types

type ConfigUpdater added in v0.5.0

type ConfigUpdater interface {
	UpdateConfigFile(string) string
}

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
}

func (*SandboxConf) Mirror added in v0.5.0

func (sc *SandboxConf) Mirror() string

func (*SandboxConf) Value added in v0.5.0

func (sc *SandboxConf) Value(k string) interface{}

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