Documentation ¶
Index ¶
- Constants
- func DumpDiagnosticsIfFailed(ctx context.Context, t *testing.T, clusters clusters.Cluster)
- func NewBytesBufferLogger() (logr.Logger, *bytes.Buffer)
- func NewFakeClientWithGatewayClasses(initObjects ...client.Object) (gatewayv1beta1.ObjectName, gatewayv1beta1.ObjectName, client.Client)
- func WaitForBlixtReadiness(ctx context.Context, env environments.Environment) error
Constants ¶
const BlixtReadinessTimeout = time.Minute * 7
Variables ¶
This section is empty.
Functions ¶
func DumpDiagnosticsIfFailed ¶
DumpDiagnosticsIfFailed dumps the diagnostics if the test failed.
func NewBytesBufferLogger ¶
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.