Documentation
¶
Index ¶
- func AssertMatchingKongPluginBindings(t *testing.T, ctx context.Context, cl client.Client, ...) bool
- func KonnectEntityGetsProgrammed[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](t *testing.T, ctx context.Context, cl client.Client, obj TEnt, ...) TEnt
- func WaitForObjectToNotExist(t *testing.T, ctx context.Context, cl client.Client, obj client.Object, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertMatchingKongPluginBindings ¶ added in v2.3.0
func AssertMatchingKongPluginBindings( t *testing.T, ctx context.Context, cl client.Client, matchingFields client.MatchingFields, waitTime time.Duration, tickTime time.Duration, assertions func(*assert.CollectT, []configurationv1alpha1.KongPluginBinding), msgAndArgs ...any, ) bool
AssertMatchingKongPluginBindings lists KongPluginBindings matching the provided fields until the supplied assertions pass.
func KonnectEntityGetsProgrammed ¶ added in v2.1.1
func KonnectEntityGetsProgrammed[ T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T], ]( t *testing.T, ctx context.Context, cl client.Client, obj TEnt, asserts ...func(t *assert.CollectT, obj TEnt), ) TEnt
KonnectEntityGetsProgrammed waits until the given Konnect entity gets programmed in Konnect. Additional assertions can be provided via the asserts parameter. When all assertions pass, the latest version of the object is returned.
func WaitForObjectToNotExist ¶
func WaitForObjectToNotExist( t *testing.T, ctx context.Context, cl client.Client, obj client.Object, waitTime time.Duration, tickTime time.Duration, msg ...string, ) bool
WaitForObjectToNotExist waits for the given object to be deleted from the cluster. It returns true if the object no longer exists, false otherwise. This function accepts an optional message that will be printed in the error message if the object still exists after the wait time.
Types ¶
This section is empty.