functional

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Path    string
	ImageID string
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(t *testing.T, path string) *Container

func (*Container) Build

func (c *Container) Build(buildargs ...string) error

func (*Container) Run

func (c *Container) Run(runargs ...string) error

func (*Container) RunContext

func (c *Container) RunContext(ctx context.Context, runargs ...string) error

func (*Container) Start

func (c *Container) Start(runargs ...string) error

func (*Container) StartContext

func (c *Container) StartContext(ctx context.Context, runargs ...string) error

func (*Container) Wait

func (c *Container) Wait() error

type TelemetryTest

type TelemetryTest interface {
	// Build the container used for testing. Returns the imageID
	// of the container image or the empty string to not filter
	// telemetry to containers running the built image.
	BuildContainer(t *testing.T) string

	// Run the container used for testing.
	RunContainer(t *testing.T)

	// create and return telemetry subscription to use for the test
	CreateSubscription(t *testing.T) *api.Subscription

	// return true to keep going, false if done
	HandleTelemetryEvent(t *testing.T, te *api.TelemetryEvent) bool
}

type TelemetryTester

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

func NewTelemetryTester

func NewTelemetryTester(tt TelemetryTest) *TelemetryTester

func (*TelemetryTester) RunTest

func (tt *TelemetryTester) RunTest(t *testing.T)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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