testhelper

package
v1.1.207 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownResource error = fmt.Errorf("unknown resource")

Functions

func BeInNamespace

func BeInNamespace(namespace string) types.GomegaMatcher

func DeepEqual

func DeepEqual(expected interface{}) types.GomegaMatcher

func HaveCondition

func HaveCondition(name string, status metav1.ConditionStatus, reason string, message string) types.GomegaMatcher

func HaveResourceName

func HaveResourceName(name string) types.GomegaMatcher

Types

type KubernetesTestHelper

type KubernetesTestHelper interface {
	Create(objects ...client.Object)
	Update(objects ...client.Object)
	WaitUntilExists(objects ...client.Object)
	CleanupCreatedObject()
	DeleteIfPresent(obj ...client.Object)
	Object(obj client.Object) AsyncAssertion
	Heist() *heist.Clientset
	VaultConfigSpec(namespace string, name string) AsyncAssertion
}

func New

func New(cfg *rest.Config, k8sClient client.Client) KubernetesTestHelper

Jump to

Keyboard shortcuts

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