test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectResourceCreated

func ExpectResourceCreated(c client.Client, obj runtime.Object)

ExpectResourceCreated asserts that the given object is created, and populates the provided runtime.Object with the current state of the object in the cluster.

func ExpectResourceDestroyed

func ExpectResourceDestroyed(c client.Client, obj runtime.Object)

ExpectResourceDestroyed asserts that the given object no longer exists.

func GetResource

func GetResource(c client.Client, obj runtime.Object) error

GetResource gets the requested object, populating obj with its contents.

func RunOperator

func RunOperator(mgr manager.Manager) chan struct{}

RunOperator runs the provided operator manager in a separate goroutine so that the test code isn't blocked. It returns a stop channel which can be closed in order to stop the execution of the operator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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