Documentation ¶
Index ¶
- func SetupCrio() string
- type TestFramework
- func (t *TestFramework) Crictl(args string) *Session
- func (t *TestFramework) CrictlExpectFailure(args string, expectedOut, expectedErr string)
- func (t *TestFramework) CrictlExpectFailureWithEndpoint(endpoint, args, expectedOut, expectedErr string)
- func (t *TestFramework) CrictlExpectSuccess(args, expectedOut string)
- func (t *TestFramework) CrictlExpectSuccessWithEndpoint(endpoint, args, expectedOut string)
- func (t *TestFramework) CrictlWithEndpoint(endpoint, args string) *Session
- func (t *TestFramework) Describe(text string, body func()) bool
- func (t *TestFramework) Setup(dir string)
- func (t *TestFramework) StartCrio() (string, string, *Session)
- func (t *TestFramework) StopCrio(testDir string, session *Session)
- func (t *TestFramework) Teardown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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