Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FIXME: Interval is set to 200 msec, as lower values will result in errors: knative/eventing#2357 // Interval = 10 * time.Millisecond Interval = 200 * time.Millisecond )
Functions ¶
Types ¶
type Config ¶
type Config struct { Wathola Namespace string Interval time.Duration FinishedSleep time.Duration Serving ServingConfig FailOnErrors bool }
Config represents a configuration for prober.
type Prober ¶
type Prober interface { // Verify will verify prober state after finished has been send Verify(ctx context.Context) ([]error, int) // Finish send finished event Finish(ctx context.Context) // ReportErrors will reports found errors in proper way ReportErrors(t *testing.T, errors []error) // contains filtered or unexported methods }
Prober is the interface for a prober, which checks the result of the probes when stopped.
func RunEventProber ¶
func RunEventProber(ctx context.Context, log *zap.SugaredLogger, client *testlib.Client, config *Config) Prober
RunEventProber starts a single Prober of the given domain.
type Report ¶
type Report struct { State string `json:"state"` Events int `json:"events"` Thrown []string `json:"thrown"` }
Report represents a receiver JSON report
type ServingConfig ¶
ServingConfig represents a options for serving test component (wathola-forwarder).
Click to show internal directories.
Click to hide internal directories.