Documentation ¶
Index ¶
- func GetFreePort(t *testing.T) int
- func HTTPRouteEventuallyContainsConditions(ctx context.Context, t *testing.T, client ctrlclient.Client, ...) func() bool
- func HTTPRouteEventuallyNotContainsConditions(ctx context.Context, t *testing.T, client ctrlclient.Client, ...) func() bool
- func WithTypeMeta[T runtime.Object](t *testing.T, obj T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
GetFreePort asks the kernel for a free open port that is ready to use. On top of that, it also makes sure that the port hasn't been used in the current test run yet to reduce chances of a race condition in parallel tests.
func HTTPRouteEventuallyContainsConditions ¶
func HTTPRouteEventuallyContainsConditions(ctx context.Context, t *testing.T, client ctrlclient.Client, nn k8stypes.NamespacedName, conds ...metav1.Condition) func() bool
HTTPRouteEventuallyContainsConditions returns a predicate function that can be used with assert.Eventually or require.Eventually in order to check - via the provided client - that the HTTPRoute with the NamespacedName as provided in the arguments, does indeed contain the provied conditions in the status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.