framework

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCrio

func SetupCrio() string

Types

type TestFramework

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

TestFramework is used to support commonly used test features

func NewTestFramework

func NewTestFramework() *TestFramework

NewTestFramework creates a new test framework instance

func (*TestFramework) Crictl

func (t *TestFramework) Crictl(args string) *Session

Run crictl and return the resulting session

func (*TestFramework) CrictlExpectFailure

func (t *TestFramework) CrictlExpectFailure(
	args string, expectedOut, expectedErr string,
)

Run crictl and expect error containing the specified outputs

func (*TestFramework) CrictlExpectFailureWithEndpoint

func (t *TestFramework) CrictlExpectFailureWithEndpoint(
	endpoint, args, expectedOut, expectedErr string,
)

Run crictl and expect failure containing the specified output

func (*TestFramework) CrictlExpectSuccess

func (t *TestFramework) CrictlExpectSuccess(args, expectedOut string)

Run crictl and expect success containing the specified output

func (*TestFramework) CrictlExpectSuccessWithEndpoint

func (t *TestFramework) CrictlExpectSuccessWithEndpoint(endpoint, args, expectedOut string)

Run crictl and expect success containing the specified output

func (*TestFramework) CrictlWithEndpoint

func (t *TestFramework) CrictlWithEndpoint(endpoint, args string) *Session

Run crictl on the specified endpoint and return the resulting session

func (*TestFramework) Describe

func (t *TestFramework) Describe(text string, body func()) bool

Describe is a convenience wrapper around the `ginkgo.Describe` function

func (*TestFramework) Setup

func (t *TestFramework) Setup(dir string)

Setup is the global initialization function which runs before each test suite

func (*TestFramework) StartCrio

func (t *TestFramework) StartCrio() (string, string, *Session)

Start the container runtime process

func (*TestFramework) StopCrio

func (t *TestFramework) StopCrio(testDir string, session *Session)

Stop the container runtime process

func (*TestFramework) Teardown

func (t *TestFramework) Teardown()

Teardown is the global deinitialization function which runs after each test suite

Jump to

Keyboard shortcuts

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