Documentation
¶
Index ¶
- Constants
- Variables
- func CreateKafkaTopic() string
- func DaemonPodLogContains(ctx context.Context, kubeClient kubernetes.Interface, ...) (bool, error)
- func DeleteKafkaTopic(topic string) string
- func Exec(name string, args ...string) (string, error)
- func ExpectKafkaTopicCount(topic string, total int, timeout time.Duration)
- func GetKafkaCount(topic string, count int) int
- func HTTPExpect(t require.TestingT, baseURL string) *httpexpect.Expect
- func InvokeE2EAPI(format string, args ...interface{}) string
- func InvokeE2EAPIPOST(format string, body string, args ...interface{}) string
- func PodPortForward(config *rest.Config, namespace, podName string, localPort, remotePort int, ...) error
- func PodsLogContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, regex string, ...) bool
- func PodsLogNotContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, regex string, ...) bool
- func PumpKafkaTopic(topic string, n int, opts ...interface{})
- func SendMessage(topic string, key string, message string)
- func ValidateMessage(topic string, key string, position int)
- func VertexPodLogContains(ctx context.Context, kubeClient kubernetes.Interface, ...) (bool, error)
- func VertexPodLogNotContains(ctx context.Context, kubeClient kubernetes.Interface, ...) (bool, error)
- func WaitForDaemonPodsRunning(kubeClient kubernetes.Interface, namespace, pipelineName string, ...) error
- func WaitForISBSvcReady(ctx context.Context, isbSvcClient flowpkg.InterStepBufferServiceInterface, ...) error
- func WaitForISBSvcStatefulSetReady(ctx context.Context, kubeClient kubernetes.Interface, ...) error
- func WaitForPipelineRunning(ctx context.Context, pipelineClient flowpkg.PipelineInterface, ...) error
- func WaitForVertexPodRunning(kubeClient kubernetes.Interface, vertexClient flowpkg.VertexInterface, ...) error
- type E2ESuite
- type Expect
- func (t *Expect) DaemonPodLogContains(pipelineName, regex string, opts ...PodLogCheckOption) *Expect
- func (t *Expect) DaemonPodsRunning() *Expect
- func (t *Expect) ISBSvcDeleted(timeout time.Duration) *Expect
- func (t *Expect) VertexPodLogContains(vertexName, regex string, opts ...PodLogCheckOption) *Expect
- func (t *Expect) VertexPodLogNotContains(vertexName, regex string, opts ...PodLogCheckOption) *Expect
- func (t *Expect) VertexPodsRunning() *Expect
- func (t *Expect) When() *When
- type Given
- type PodLogCheckOption
- type When
- func (w *When) And(block func()) *When
- func (w *When) CreateISBSvc() *When
- func (w *When) CreatePipelineAndWait() *When
- func (w *When) DaemonPodPortForward(pipelineName string, localPort, remotePort int) *When
- func (w *When) DeleteISBSvc() *When
- func (w *When) DeletePipelineAndWait() *When
- func (w *When) Exec(name string, args []string, block func(t *testing.T, output string, err error)) *When
- func (w *When) Expect() *Expect
- func (w *When) Given() *Given
- func (w *When) TerminateAllPodPortForwards() *When
- func (w *When) VertexPodPortForward(vertexName string, localPort, remotePort int) *When
- func (w *When) Wait(timeout time.Duration) *When
- func (w *When) WaitForISBSvcReady() *When
Constants ¶
View Source
const ( Namespace = "numaflow-system" Label = "numaflow-e2e" LabelValue = "true" ISBSvcName = "numaflow-e2e" LogSourceVertexStarted = "Start processing source messages" LogSinkVertexStarted = "Start processing sink messages" LogUDFVertexStarted = "Start processing udf messages" LogDaemonStarted = "Daemon server started successfully" )
Variables ¶
Functions ¶
func CreateKafkaTopic ¶
func CreateKafkaTopic() string
func DaemonPodLogContains ¶ added in v0.5.4
func DaemonPodLogContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, pipelineName, regex string, opts ...PodLogCheckOption) (bool, error)
func DeleteKafkaTopic ¶
func ExpectKafkaTopicCount ¶
func GetKafkaCount ¶
func HTTPExpect ¶
func InvokeE2EAPI ¶
func InvokeE2EAPIPOST ¶
func PodPortForward ¶
func PodsLogContains ¶
func PodsLogContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, regex string, podList *corev1.PodList, opts ...PodLogCheckOption) bool
func PodsLogNotContains ¶ added in v0.5.3
func PodsLogNotContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, regex string, podList *corev1.PodList, opts ...PodLogCheckOption) bool
func PumpKafkaTopic ¶
func SendMessage ¶
func ValidateMessage ¶
func VertexPodLogContains ¶
func VertexPodLogContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, pipelineName, vertexName, regex string, opts ...PodLogCheckOption) (bool, error)
func VertexPodLogNotContains ¶ added in v0.5.3
func VertexPodLogNotContains(ctx context.Context, kubeClient kubernetes.Interface, namespace, pipelineName, vertexName, regex string, opts ...PodLogCheckOption) (bool, error)
func WaitForDaemonPodsRunning ¶ added in v0.5.4
func WaitForISBSvcReady ¶
func WaitForPipelineRunning ¶
func WaitForVertexPodRunning ¶
func WaitForVertexPodRunning(kubeClient kubernetes.Interface, vertexClient flowpkg.VertexInterface, namespace, pipelineName, vertexName string, timeout time.Duration) error
Types ¶
type E2ESuite ¶
func (*E2ESuite) CheckError ¶
func (*E2ESuite) SetupSuite ¶
func (s *E2ESuite) SetupSuite()
func (*E2ESuite) StartPortForward ¶
func (*E2ESuite) TearDownSuite ¶
func (s *E2ESuite) TearDownSuite()
type Expect ¶
type Expect struct {
// contains filtered or unexported fields
}
func (*Expect) DaemonPodLogContains ¶ added in v0.5.4
func (t *Expect) DaemonPodLogContains(pipelineName, regex string, opts ...PodLogCheckOption) *Expect
func (*Expect) DaemonPodsRunning ¶ added in v0.5.4
func (*Expect) VertexPodLogContains ¶
func (t *Expect) VertexPodLogContains(vertexName, regex string, opts ...PodLogCheckOption) *Expect
func (*Expect) VertexPodLogNotContains ¶ added in v0.5.3
func (t *Expect) VertexPodLogNotContains(vertexName, regex string, opts ...PodLogCheckOption) *Expect
func (*Expect) VertexPodsRunning ¶
type Given ¶
type Given struct {
// contains filtered or unexported fields
}
func (*Given) ISBSvc ¶
creates an ISBSvc based on the parameter, this may be:
1. A file name if it starts with "@" 2. Raw YAML.
type PodLogCheckOption ¶ added in v0.5.3
type PodLogCheckOption func(*podLogCheckOptions)
func PodLogCheckOptionWithContainer ¶ added in v0.5.3
func PodLogCheckOptionWithContainer(c string) PodLogCheckOption
func PodLogCheckOptionWithCount ¶ added in v0.5.3
func PodLogCheckOptionWithCount(c int) PodLogCheckOption
func PodLogCheckOptionWithTimeout ¶ added in v0.5.3
func PodLogCheckOptionWithTimeout(t time.Duration) PodLogCheckOption
type When ¶
type When struct {
// contains filtered or unexported fields
}
func (*When) CreateISBSvc ¶
func (*When) CreatePipelineAndWait ¶
func (*When) DaemonPodPortForward ¶ added in v0.5.4
func (*When) DeleteISBSvc ¶
func (*When) DeletePipelineAndWait ¶
func (*When) TerminateAllPodPortForwards ¶
func (*When) VertexPodPortForward ¶
func (*When) WaitForISBSvcReady ¶
Click to show internal directories.
Click to hide internal directories.