testcase

package
v0.0.0-...-6718f99 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTestEnvironment

func SetupTestEnvironment(proto string, config libruntime.RuntimeConfig, clean bool) (libruntime.Runtime, error)

SetupTestEnvironment setups server and client for container runtime

Types

type BasicContainerTest

type BasicContainerTest struct {
	Runtime libruntime.Runtime
}

func (*BasicContainerTest) RunTestCases

func (t *BasicContainerTest) RunTestCases(ctx context.Context, testcases, args []string) error

func (*BasicContainerTest) TestCreateContainers

func (t *BasicContainerTest) TestCreateContainers(ctx context.Context, containerName, imageName string) error

func (*BasicContainerTest) TestCreateRunningContainers

func (t *BasicContainerTest) TestCreateRunningContainers(ctx context.Context, containerName, imageName string) error

func (*BasicContainerTest) TestCreateRunningNWaitContainers

func (t *BasicContainerTest) TestCreateRunningNWaitContainers(ctx context.Context, containerName, imageName string) error

func (*BasicContainerTest) TestPullContainerImage

func (t *BasicContainerTest) TestPullContainerImage(ctx context.Context, imageName string) error

type ProfileContainerTest

type ProfileContainerTest struct {
	Runtime libruntime.Runtime
}

func (*ProfileContainerTest) RunTestCases

func (t *ProfileContainerTest) RunTestCases(ctx context.Context, testcases, args []string) error

func (*ProfileContainerTest) TestCreateRunningContainers

func (t *ProfileContainerTest) TestCreateRunningContainers(ctx context.Context, containerName, imageName string) error

func (*ProfileContainerTest) TestPullContainerImage

func (t *ProfileContainerTest) TestPullContainerImage(ctx context.Context, imageName string) error

type StressTest

type StressTest struct {
	Runtime libruntime.Runtime
}

func (*StressTest) RunTestCases

func (t *StressTest) RunTestCases(ctx context.Context, testcases, args []string) error

func (*StressTest) TestContainerCreateDelete

func (t *StressTest) TestContainerCreateDelete(ctx context.Context, parallelCount, loopCount int) error

func (*StressTest) TestImagePull

func (t *StressTest) TestImagePull(ctx context.Context, parallelCount int, imageName string) error

type Testcases

type Testcases interface {
	RunTestCases(context context.Context, testcases, args []string) error
}

Testcases interface to implement testcases

Jump to

Keyboard shortcuts

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