tests

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertBackfillRequestCompleted

func AssertBackfillRequestCompleted(t *testing.T, k8sClient client.Client, objectName types.NamespacedName)

func AssertBackfillRequestNotCompleted

func AssertBackfillRequestNotCompleted(t *testing.T, k8sClient client.Client, objectName types.NamespacedName)

func AssertCronJobExists

func AssertCronJobExists(t *testing.T, k8sClient client.Client, name types.NamespacedName, additionalAssert func(*testing.T, *batchv1.CronJob))

func AssertCronJobNotExists

func AssertCronJobNotExists(t *testing.T, k8sClient client.Client, name types.NamespacedName)

func AssertJobConfiguration

func AssertJobConfiguration(t *testing.T, k8sClient client.Client, name types.NamespacedName, expectedConfiguration string)

func AssertJobExists

func AssertJobExists(t *testing.T, k8sClient client.Client, name types.NamespacedName)

func AssertJobNotExists

func AssertJobNotExists(t *testing.T, k8sClient client.Client, name types.NamespacedName)

func AssertStreamDefinitionPhase

func AssertStreamDefinitionPhase(t *testing.T, k8sClient client.Client, name types.NamespacedName, phase stream.Phase)

func Combined

func Combined(funcs ...func(definition *testv2.MockStreamDefinition)) func(definition *testv2.MockStreamDefinition)

func CombinedB

func CombinedB(funcs ...func(definition *crfake.ClientBuilder)) func(definition *crfake.ClientBuilder)

func SetupClient

func SetupClient(objectName types.NamespacedName, definition func(definition *testv2.MockStreamDefinition), addResources func(client2 *crfake.ClientBuilder)) client.Client

func WithBackfillRequest

func WithBackfillRequest(n types.NamespacedName) func(definition *crfake.ClientBuilder)

func WithCompletedJob

func WithCompletedJob(n types.NamespacedName) func(definition *crfake.ClientBuilder)

func WithConsistentCronJob

func WithConsistentCronJob(n types.NamespacedName, hash string) func(definition *crfake.ClientBuilder)

func WithConsistentJob

func WithConsistentJob(n types.NamespacedName, hash string) func(definition *crfake.ClientBuilder)

func WithFailedJob

func WithFailedJob(n types.NamespacedName) func(definition *crfake.ClientBuilder)

func WithNamedStreamDefinition

func WithNamedStreamDefinition(n types.NamespacedName) func(definition *testv2.MockStreamDefinition)

func WithOutdatedCronJob

func WithOutdatedCronJob(n types.NamespacedName) func(definition *crfake.ClientBuilder)

func WithOutdatedJob

func WithOutdatedJob(n types.NamespacedName) func(definition *crfake.ClientBuilder)

func WithPhase

func WithPhase(phase stream.Phase) func(definition *testv2.MockStreamDefinition)

func WithSchedule

func WithSchedule(schedule string) func(definition *testv2.MockStreamDefinition)

func WithSuspendedSpec

func WithSuspendedSpec(spec bool) func(definition *testv2.MockStreamDefinition)

Types

This section is empty.

Jump to

Keyboard shortcuts

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