tests

package
v0.0.0-...-92ba5c8 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTimeout = 30 * time.Second

The default timeout for EventuallyGet().

Functions

func Functional

func Functional() *functionalBuilder

func Unit

func Unit() *unitBuilder

Types

type EventuallyGetValueGetter

type EventuallyGetValueGetter func(client.Object) (interface{}, error)

type FunctionalHelper

type FunctionalHelper struct {
	UncachedClient client.Client
	Client         client.Client
	TestClient     *testClient
	Namespace      string
	// contains filtered or unexported fields
}

func (*FunctionalHelper) DebugList

func (fh *FunctionalHelper) DebugList(listType runtime.Object)

Helper method to show a list of objects, used in AfterEach helpers.

func (*FunctionalHelper) MustStop

func (fh *FunctionalHelper) MustStop()

func (*FunctionalHelper) Stop

func (fh *FunctionalHelper) Stop() error

type FunctionalSuiteHelper

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

func (*FunctionalSuiteHelper) MustStart

func (fsh *FunctionalSuiteHelper) MustStart(controllers ...managerAdder) *FunctionalHelper

func (*FunctionalSuiteHelper) MustStop

func (fsh *FunctionalSuiteHelper) MustStop()

func (*FunctionalSuiteHelper) Start

func (fsh *FunctionalSuiteHelper) Start(controllers ...managerAdder) (*FunctionalHelper, error)

func (*FunctionalSuiteHelper) Stop

func (fsh *FunctionalSuiteHelper) Stop() error

type UnitHelper

type UnitHelper struct {
	Comp       core.Component
	Client     client.Client
	TestClient *testClient
	Object     client.Object
	Events     chan string
	Ctx        *core.Context
}

func (*UnitHelper) Finalize

func (uh *UnitHelper) Finalize() (core.Result, bool, error)

func (*UnitHelper) MustFinalize

func (uh *UnitHelper) MustFinalize() (core.Result, bool)

func (*UnitHelper) MustReconcile

func (uh *UnitHelper) MustReconcile() core.Result

func (*UnitHelper) Reconcile

func (uh *UnitHelper) Reconcile() (core.Result, error)

type UnitSuiteHelper

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

func (*UnitSuiteHelper) Setup

func (ush *UnitSuiteHelper) Setup(comp core.Component, obj client.Object) *UnitHelper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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