test

package
v0.0.0-...-721006d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeSuite

type RuntimeSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

RuntimeSuite implements a full test suite for a container runtime. Each implementation should invoke this suite as part of their tests.

func TestRuntime(t *testing.T) {
  rt := /* create a runtime */
  suite.Run(t, NewRuntimeSuite(rt))
}

func NewRuntimeSuite

func NewRuntimeSuite(rt runtime.Runtime, rtt RuntimeType) *RuntimeSuite

NewRuntimeSuite creates a test suite for a specific runtime.

func (*RuntimeSuite) TestContainerLogs

func (s *RuntimeSuite) TestContainerLogs()

TestContainerLogs validates terminal output from a container.

func (*RuntimeSuite) TestContainerStop

func (s *RuntimeSuite) TestContainerStop()

TestContainerStop validates different ways of terminating a container.

func (*RuntimeSuite) TestCreateInspect

func (s *RuntimeSuite) TestCreateInspect()

TestCreateInspect tests container creation and introspection.

func (*RuntimeSuite) TestListContainers

func (s *RuntimeSuite) TestListContainers()

TestListContainers validates container enumeration.

type RuntimeType

type RuntimeType int
const (
	RuntimeTypeDocker RuntimeType = iota
	RuntimeTypeCRI
	RuntimeTypeKubernetes
)

Jump to

Keyboard shortcuts

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