test

package
v0.0.0-...-4250f4c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlowTimeout = 100 * time.Second
	SlowPolling = 10 * time.Second
	FastTimeout = 1 * time.Second
	FastPolling = 10 * time.Millisecond
)

Variables

This section is empty.

Functions

func ExpectApplied

func ExpectApplied(ctx context.Context, c client.Client, objects ...client.Object)

func ExpectCleanedUp

func ExpectCleanedUp(ctx context.Context, c client.Client, objectLists ...client.ObjectList)

ExpectCleanedUp waits to cleanup all items passed through objectLists

func ExpectDeleted

func ExpectDeleted(ctx context.Context, c client.Client, objects ...client.Object)

func ExpectDeletionTimestampSet

func ExpectDeletionTimestampSet(ctx context.Context, c client.Client, objects ...client.Object)

ExpectDeletionTimestampSet ensures that the deletion timestamp is set on the objects by adding a finalizer and then deleting the object immediately after. This will hold the object until the finalizer is patched out

func ExpectForceCleanedUp

func ExpectForceCleanedUp(ctx context.Context, c client.Client, objectLists ...client.ObjectList)

ExpectForceCleanedUp waits to cleanup all items passed through objectLists It forcefully removes any finalizers from all of these objects to unblock delete

func ExpectNotFound

func ExpectNotFound(ctx context.Context, c client.Client, objects ...client.Object)

func ExpectNotRequeued

func ExpectNotRequeued(result reconcile.Result)

func ExpectObject

func ExpectObject[T client.Object](ctx context.Context, c client.Client, obj T) types.Assertion

func ExpectObjectReconcileFailed

func ExpectObjectReconcileFailed[T client.Object](ctx context.Context, c client.Client, reconciler reconcile.ObjectReconciler[T], object T) types.Assertion

func ExpectObjectReconciled

func ExpectObjectReconciled[T client.Object](ctx context.Context, c client.Client, reconciler reconcile.ObjectReconciler[T], object T) types.Assertion

func ExpectReconciled deprecated

func ExpectReconciled(ctx context.Context, reconciler reconcile.Reconciler, object client.Object) reconcile.Result

Deprecated: Use the more modern ExpectObjectReconciled and reconcile.AsReconciler instead

func ExpectRequeued

func ExpectRequeued(result reconcile.Result)

func ExpectSingletonReconcileFailed

func ExpectSingletonReconcileFailed(ctx context.Context, reconciler singleton.Reconciler) error

func ExpectSingletonReconciled

func ExpectSingletonReconciled(ctx context.Context, reconciler singleton.Reconciler) reconcile.Result

func ExpectStatusConditions

func ExpectStatusConditions(ctx context.Context, c client.Client, timeout time.Duration, obj status.Object, conditions ...status.Condition)

func ExpectStatusUpdated

func ExpectStatusUpdated(ctx context.Context, c client.Client, objects ...client.Object)

func GetMetric

func GetMetric(name string, labels ...map[string]string) *prometheus.Metric

GetMetric attempts to find a metric given name and labels If no metric is found, the *prometheus.Metric will be nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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