framework

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestContext *testContext
)

Functions

func ExpectHaveKeys

func ExpectHaveKeys(m interface{}, keys ...string)

func ExpectNoError

func ExpectNoError(err error, explain ...interface{})

func Fail

func Fail(message string, callerSkip ...int)

func Failf

func Failf(format string, args ...interface{})

func Logf

func Logf(format string, args ...interface{})

func RegisterFlagsAndParse

func RegisterFlagsAndParse()

Types

type Framework

type Framework struct {
	Ctx            context.Context
	Client         client.Client
	KubeConfigFile string
	Namespace      string
	Scheme         *runtime.Scheme
	// contains filtered or unexported fields
}

func NewDefaultFramework

func NewDefaultFramework(tc *testContext) *Framework

func (*Framework) ToYaml

func (f *Framework) ToYaml(obj client.Object) string

type TestContextType

type TestContextType struct {
	TimeoutInSeconds int
	Namespace        string
}

func (*TestContextType) NewContext

func (t *TestContextType) NewContext() (context.Context, context.CancelFunc)

func (*TestContextType) RegisterAndParse

func (t *TestContextType) RegisterAndParse()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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