framework

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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) CrictlExpect added in v1.27.1

func (t *TestFramework) CrictlExpect(
	endpoint, args string, exit int, expectedOut, expectedErr string,
)

Run crictl and expect exit, expectedOut, expectedErr

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) CrictlWithEndpointNoWait added in v1.29.0

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

Run crictl on the specified endpoint and return the resulting session without wait

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