utils

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BlixtReadinessTimeout = time.Minute * 7

Variables

This section is empty.

Functions

func DumpDiagnosticsIfFailed

func DumpDiagnosticsIfFailed(ctx context.Context, t *testing.T, clusters clusters.Cluster)

DumpDiagnosticsIfFailed dumps the diagnostics if the test failed.

func NewBytesBufferLogger

func NewBytesBufferLogger() (logr.Logger, *bytes.Buffer)

NewBytesBufferLogger creates a standard logger with a *bytes.Buffer as the output wrapped in a logr.Logger implementation to provide to reconcilers.

func NewFakeClientWithGatewayClasses

func NewFakeClientWithGatewayClasses(initObjects ...client.Object) (gatewayv1beta1.ObjectName, gatewayv1beta1.ObjectName, client.Client)

NewFakeClientWithGatewayClasses creates a new fake controller-runtime client.Client for testing, with two GatewayClasses pre-loaded into the client: one that's managed by our GatewayClassControllerName, and one that isn't. You can also optionally provide more init objects to pre-load if needed.

func WaitForBlixtReadiness

func WaitForBlixtReadiness(ctx context.Context, env environments.Environment) error

WaitForBlixtReadiness waits for Blixt to be ready in the provided testing environment (but deploying Blixt is expected to have already been handled elsewhere).

Types

This section is empty.

Jump to

Keyboard shortcuts

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